We all know that functions are inherited, but how about the protected $_schema
of Lithium Model?
For example, I have:
class ParentModel extends Model {
protected $_schema = array(
'name' => array('type' => 'string'),
'address' => array('type' => 'string'),
);
}
class ChildModel extends ParentModel {
protected $_schema = array(
'mobile' => array('type' => 'string'),
'email' => array('type' => 'string'),
);
}
I wonder when saving a ChildModel
record, would the $_schema
of ChildModel
combined with the $_schema
of ParentModel
? That's:
array(
'name' => array('type' => 'string'),
'address' => array('type' => 'string'),
'mobile' => array('type' => 'string'),
'email' => array('type' => 'string'),
);
How can I check if this is the case?
Big Thanks