Browse Source

Merge pull request #531 from markhuot/develop

Syncing Up Magic Methods
Taylor Otwell 12 years ago
parent
commit
b9d573467a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      laravel/database/eloquent/model.php

+ 2 - 0
laravel/database/eloquent/model.php

@@ -650,6 +650,8 @@ abstract class Model {
 		{
 			if (array_key_exists($key, $this->$source)) return true;
 		}
+		
+		if (method_exists($this, $key)) return true;
 	}
 
 	/**