public hasAttribute (Phalcon\Mvc\ModelInterface $model, mixed $attribute)
Check if a model has certain attribute
1 | var_dump( $metaData ->hasAttribute( new Robots(), 'name' )); |
public hasAttribute (Phalcon\Mvc\ModelInterface $model, mixed $attribute)
Check if a model has certain attribute
1 | var_dump( $metaData ->hasAttribute( new Robots(), 'name' )); |
Designed by : w10schools
service@w10schools.com
Please login to continue.