A helper for meta information about entities
Located in /Orm/Entity/Type.php (line 36)
Xyster_Type | --Xyster_Orm_Entity_Type
Cache for entity fields
An array of Xyster_Orm_Entity_Lookup_Interface objects
The mapper factory
A cache for all entity members
The field names of the primary key
The relation objects
The cache for runtime column lookups
Whether validation is enabled for this type
Whether to validate entities when saved or per-field
Inherited from Xyster_Type
Xyster_Type::$_class
Xyster_Type::$_type
Creates a new Entity type representation
Adds a lookup to the entity type
Adds a validator for a field
Asserts a field's presence in the entity class' members
Creates a 'one to one' relationship for entities on the 'many' end of a 'one to many' relationship
Options can contain the following values:
<dl> <dt>class</dt><dd>The foreign class. The relation name by default</dd> <dt>id</dt><dd>The name of the foreign key field(s) on the declaring entity. This should either be an array (if multiple) or a string (if one). By default, this is classId</dd> <dt>filters</dt><dd>In XSQL, any Criteria that should be used against the entity to be loaded</dd> </dl>
Disables validation for this entity type. USE WITH CAUTION.
Gets the class name of the entity
Gets a field by name
Gets the names of the fields for the entity
Gets the fields for the entity
Gets the lookup by name
Gets the names of all lookups defined for this entity
Gets the mapper factory
Gets all available class members (fields, relations, and methods)
Gets an array containing the field name or names for the primary key
Gets the relationship by name
Gets the names of all relations defined for this entity
Gets the relations for the entity
Gets the validators for a field
This method returns a single Zend_Validate object containing all of the validators for the field. It will return null if there are no validators.
Creates a 'many to many' relationship
<dl> <dt>class</dt><dd>The class of entity to load through the join table. It will be the relationship name minus a trailing 's' by default.</dd> <dt>table</dt><dd>The join table name. By default this will be declaring_class_class</dd> <dt>left</dt><dd>The column(s) in the join table referencing the declaringClass entity. By default: declaring_class_id</dd> <dt>right</dt><dd>The column(s) in the join table referencing the foreign entity. By default, it's class_name_id</dd> <dt>filters</dt><dd>In XSQL, any Criteria that should be used against the join table. Column names should be specified in the format native to the data store (i.e. with underscores, not camelCase)</dd> </dl>
Creates a 'one to many' relationship
Options can contain the following values:
<dl> <dt>class</dt><dd>The foreign class. The relation name minus a trailing 's' by default</dd> <dt>id</dt><dd>The name of the foreign key field(s) on the related entity. This should either be an array (if multiple) or a string (if one). By default, this is classId</dd> <dt>filters</dt><dd>In XSQL, any Criteria that should be used against the entities to be loaded</dd> </dl>
Creates a 'one to one' relationship
Options can contain the following values:
<dl> <dt>class</dt><dd>The foreign class. The relation name by default</dd> <dt>id</dt><dd>The name of the foreign key field(s) on the declaring entity. This should either be an array (if multiple) or a string (if one). By default, this is classId</dd> <dt>filters</dt><dd>In XSQL, any Criteria that should be used against the entity to be loaded</dd> </dl>
Whether the entity has a lookup with the name supplied
Whether the entity has a relationship with the name supplied
Verifies if a Xyster_Data_Symbol is runtime
Whether this entity should be validated before save (instead of field)
Whether validation is enabled for this entity type
Validates a field
Sets the validate-on-save setting
Base creator method
Returns if a field is runtime
Inherited From Xyster_Type
Xyster_Type::__construct()
Xyster_Type::areDeeplyEqual()
Xyster_Type::areEqual()
Xyster_Type::equals()
Xyster_Type::getClass()
Xyster_Type::getForParameters()
Xyster_Type::getName()
Xyster_Type::hash()
Xyster_Type::hashCode()
Xyster_Type::isAssignableFrom()
Xyster_Type::isInstance()
Xyster_Type::isObject()
Xyster_Type::of()
Xyster_Type::_getReflectionClass()
Xyster_Type::__toString()
Documentation generated on Mon, 19 May 2008 17:07:41 -0400 by phpDocumentor 1.4.2