Closed wildsurfer closed 9 years ago
When your model has references
protected static $attrs = array( 'number' => array('type' => 'integer'), 'fieldname' => array('model'=>'Models\Somemodel','type'=>'reference') );
You may face some exceptions when you try to do smth like this:
$obj = new Somemodel::id(...); $data = $obj->toArray(); $data['number']++; $obj->update($data);
This PR should fix it
When your model has references
You may face some exceptions when you try to do smth like this:
This PR should fix it