Метод |
Описание |
|
fireEvent ( string $method, array $args = [] ) |
Fires event. |
|
getMetadata ( ) : EntityMetadata |
Returns entity metadata. |
|
getModel ( boolean $need = true ) : Nextras\Orm\Model\IModel |
Returns entity model. |
|
getPersistedId ( ) : mixed |
Returns persisted primary value. |
|
getPreloadContainer ( ) : Nextras\Orm\Collection\IEntityPreloadContainer |
|
|
getProperty ( string $name ) : mixed | Nextras\Orm\Entity\IPropertyContainer |
Returns property contents. |
|
getRawProperty ( string $name ) : mixed |
Returns property raw contents. |
|
getRawValue ( string $name ) : mixed |
Returns raw value. |
|
getRepository ( boolean $need = true ) : Nextras\Orm\Repository\IRepository | null |
Returns entity repository. |
|
getValue ( string $name ) : mixed |
Returns value. |
|
hasValue ( string $name ) : boolean |
Returns true if property has a value (not null). |
|
isAttached ( ) : boolean |
Returns true if entity is attached to its repository. |
|
isModified ( string $name = null ) : boolean |
Returns true if the entity is modiefied or the column $name is modified. |
|
isPersisted ( ) : boolean |
Returns true if entity is persisted. |
|
setAsModified ( string $name = null ) : self |
Sets the entity or the column as modified. |
|
setPreloadContainer ( Nextras\Orm\Collection\IEntityPreloadContainer $overIterator = null ) |
Sets the collection of entites for the loading relations at once. |
|
setRawValue ( string $name, mixed $value ) |
Sets raw value. |
|
setReadOnlyValue ( string $name, mixed $value ) : self |
Sets read-only value. |
|
setValue ( string $name, mixed $value ) : self |
Sets property value. |
|
toArray ( integer $mode = self::TO_ARRAY_RELATIONSHIP_AS_IS ) : array |
Converts entity to array. |
|