A data entity: the basic data unit of the ORM package
Located in /Orm/Entity.php (line 28)
Class | Description |
---|---|
Xyster_Orm_Entity_Resource | Entity that doubles as an ACL resource |
The "base" values from object instantiation
For quick modification checking
A set of event listeners
Looked-up values
Related entities or sets
The entity values
Adds an entity meta information object
This shouldn't be called except by the Xyster_Orm_Mapper
Creates a new entity
Adds a listener for value edit events
Listeners can only be registered once. Trying to add a listener a second time will return false.
Removes the listeners
Compares two values for equality
An entity is equal to another entity if they're identical or they're the same class name and have the same primary key. If the primary key is empty, the actual values are compared.
Gets the original values of the entity
Gets the fields that have been changed since the entity was created
Gets the primary key of the entity
Gets the primary key of the entity as a Xyster_Data_Criterion
Gets the primary key of the entity as a string
Gets the hash code for the entity
Imports the values in the array into the corresponding fields
Determines whether or not this entity has changed values since creation
Checks whether a related entity or set has been loaded
Removes a specific listener from the entity
Sets the entity as dirty or clean
This is only used by the transactional layer or associated collections to notify changes in an entity's state. You shouldn't call this method directly.
Returns an array copy of the entity
Gets a lookup value
Gets a related property
The base method for setting fields
If overriding this method, make sure to call the parent or else the entity won't mark itself dirty.
Sets the lookup value
Sets a linked property and registers the entity as dirty
Overloader for getting/setting linked properties
Overloader for getting fields
Overloader for setting fields
Returns a string value of this entity
Documentation generated on Mon, 19 May 2008 17:07:06 -0400 by phpDocumentor 1.4.2