Method |
Description |
|
getAttributes ( string | ManaPHP\Mvc\ModelInterface $model ) : array |
Returns table attributes names (fields) |
|
getAutoIncrementAttribute ( string | ManaPHP\Mvc\ModelInterface $model ) : string | null |
Returns attribute which is auto increment or null |
|
getColumnProperties ( string | ManaPHP\Mvc\ModelInterface $model ) : array |
|
|
getNonPrimaryKeyAttributes ( string | ManaPHP\Mvc\ModelInterface $model ) : array |
Returns an array of fields which are not part of the primary key |
|
getPrimaryKeyAttributes ( string | ManaPHP\Mvc\ModelInterface $model ) : array |
Returns an array of fields which are part of the primary key |
|
hasAttribute ( string | ManaPHP\Mvc\ModelInterface $model, string $attribute ) : boolean |
Check if a model has certain attribute |
|