Property | Type | Description | |
---|---|---|---|
$className | string | ||
$em | Doctrine\Common\Persistence\ObjectManager | ||
$primaryKey | string | ||
$textProperty | string |
Method | Description | |
---|---|---|
__construct ( Doctrine\Common\Persistence\ObjectManager $em, string $class, string | null $textProperty = null, string $primaryKey = 'id' ) | ||
reverseTransform ( string $value ) : mixed | null | object | Transform single id value to an entity | |
transform ( mixed $entity ) : array | Transform entity to array |
protected ObjectManager,Doctrine\Common\Persistence $em | ||
return | Doctrine\Common\Persistence\ObjectManager |