Method | Description | |
---|---|---|
__construct ( |
||
getEntities ( ) : array | Returns the according entities for the choices | |
getEntity ( string $key ) : object | Returns the entity for the given key | |
getIdentifier ( ) | ||
getIdentifierValues ( object $entity ) | Returns the values of the identifier fields of an entity |
Method | Description | |
---|---|---|
load ( ) : array | Initializes the choices and returns them |
Method | Description | |
---|---|---|
getReflProperty ( string $property ) : ReflectionProperty | Returns the \ReflectionProperty instance for a property of the underlying class | |
loadEntities ( $entities, $group = null ) | Convert entities into choices with support for groups |
public __construct ( |
||
$em |
public getEntities ( ) : array | ||
return | array | An array of entities |
public getIdentifierValues ( object $entity ) | ||
$entity | object | The entity for which to get the identifier |