This commit is contained in:
Kieran
2015-12-14 13:29:24 +00:00
parent d56bbb2356
commit 2f83db311f
+3 -1
View File
@@ -416,7 +416,9 @@ class ModelsCommand extends Command
protected function setMethod($name, $type = '', $arguments = array())
{
if (!isset($this->methods[$name])) {
$methods = array_change_key_case($this->methods, CASE_LOWER);
if (!isset($methods[strtolower($name)])) {
$this->methods[$name] = array();
$this->methods[$name]['type'] = $type;
$this->methods[$name]['arguments'] = $arguments;