EntityWrapper
class EntityWrapper extends AbstractWrapper
Class EntityWrapper
Properties
| protected object | $meta | Object metadata | from AbstractWrapper |
| protected object | $object | Wrapped object | from AbstractWrapper |
| protected ObjectManager | $om | Object manager instance | from AbstractWrapper |
Methods
Wrap object factory method
Populates the object with given property values
Wrap entity
Extract property value from object
Set the property
Checks if identifier is valid
Get root object class name
Get the object identifier, single or composite
Checks if association is embedded
Initialize the entity if it is proxy required when is detached or not initialized
Details
in AbstractWrapper at line 58
static mixed
wrap(object $object, ObjectManager $om)
Wrap object factory method
in AbstractWrapper at line 69
static
clear()
Clear all wrapped object references
in AbstractWrapper at line 80
object
getObject()
Get currently wrapped object etc.: entity, document
in AbstractWrapper at line 90
object
getMetadata()
Get metadata
in AbstractWrapper at line 102
AbstractWrapper
populate(array $data)
Populates the object with given property values
at line 40
__construct(object $entity, EntityManager $em)
Wrap entity
at line 54
mixed
getPropertyValue(string $property)
Extract property value from object
at line 69
EntityWrapper
setPropertyValue(string $property, mixed $value)
Set the property
at line 82
bool
hasValidIdentifier()
Checks if identifier is valid
at line 92
string
getRootObjectName()
Get root object class name
at line 104
array|mixed
getIdentifier(boolean $single = true)
Get the object identifier, single or composite
at line 143
bool
isEmbeddedAssociation(string $field)
Checks if association is embedded
at line 151
protected
initialize()
Initialize the entity if it is proxy required when is detached or not initialized