public function TestObjectMetadata::hasField in Plug 7
Checks if the given field is a mapped property for this class.
Parameters
string $fieldName:
Return value
boolean
Overrides ClassMetadata::hasField
File
- lib/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Persistence/ PersistentObjectTest.php, line 203
Class
Namespace
Doctrine\Tests\Common\PersistenceCode
public function hasField($fieldName) {
return in_array($fieldName, array(
'id',
'name',
));
}