Development Doctrine_EntityPersister_Abstract
Doctrine EntityPersister Abstract
Direct Sub-Classes
- Doctrine_EntityPersister_JoinedSubclass: The joined subclass persister maps a single entity instance to several tables in the database as it is defined by <tt>Class Table Inheritance</tt>.
Method Summary
| Returns | Name | Description |
|---|---|---|
| boolean | delete | Triggered Events: onPreDelete, onDelete. |
| getClassMetadata | ||
| getComponentName | ||
| getConnection | ||
| getCustomFields | ||
| getCustomJoins | ||
| getEntityManager | ||
| getFieldNames | ||
| getOwningClass | ||
| save | ||
| saveAssociations | this method takes a diff of one-to-many / many-to-many original and current collections and applies the changes for example if original many-to-many related collection has records with primary keys 1,2 and 3 and the new collection has records with prima | |
| saveSingleRecord | ||
| array | _convertFieldToColumnNames | |
| _deleteComposites | ||
| _deleteRow | ||
| _doDelete | ||
| _doInsert | ||
| _doUpdate | ||
| boolean | _insert | |
| _insertOrUpdate | ||
| _insertRow | ||
| _saveRelated | ||
| boolean | _update | |
| _updateRow | ||
| __construct |
Method Details
-
(boolean) delete(( ) $record, ( ) $conn = null)
Deletes given entity and all it's related entities.
Triggered Events: onPreDelete, onDelete.
Doctrine_EntityPersister_Abstract
throws Doctrine_Mapper_Exception
-
getClassMetadata()
-
getComponentName()
-
getConnection()
Returns the connection the mapper is currently using.
Doctrine_EntityPersister_Abstract
-
getCustomFields()
Callback that is invoked during the SQL construction process.
-
getCustomJoins()
Callback that is invoked during the SQL construction process.
-
getEntityManager()
-
getFieldNames()
-
getOwningClass($fieldName)
-
$record The entity to save. $conn The connection to use. Will default to the mapper's connection. save(( ) $record, (Doctrine_Connection) $conn)
Saves an entity.
-
saveAssociations(( ) $record)
this method takes a diff of one-to-many / many-to-many original and current collections and applies the changes
for example if original many-to-many related collection has records with primary keys 1,2 and 3 and the new collection has records with primathrows Doctrine_Connection_Exception if something went wrong at database level
-
saveSingleRecord(( ) $record)
saves the given record
-
(array) _convertFieldToColumnNames($fields, ( ) $class)
Assumes that the keys of the given field array are field names and converts them to column names.
-
_deleteComposites(( ) $record)
deletes all related composites this method is always called internally when a record is deleted
throws PDOException if something went wrong at database level
-
_deleteRow($tableName, $identifierToMatch)
Deletes rows of a table.
-
_doDelete(( ) $entity)
-
_doInsert(( ) $entity)
-
_doUpdate(( ) $entity)
-
$record record to be inserted (boolean) _insert(( ) $record)
Inserts an entity.
-
$record The entity to insert/update. _insertOrUpdate(( ) $record)
Inserts or updates an entity, depending on it's state.
-
_insertRow($tableName, $data)
Inserts a row into a table.
-
_saveRelated(( ) $record)
saves all related records to $record
throws PDOException if something went wrong at database level
-
$record record to be updated (boolean) _update(( ) $record)
Updates an entity.
Doctrine_EntityPersister_Abstract
-
_updateRow($tableName, $data, $identifierToMatch)
Deletes rows of a table.
-
$name The name of the domain class this mapper is used for. $table The table object used for the mapping procedure. __construct(( ) $em, ( ) $classMetadata, $name, (Doctrine_Table) $table)
Constructs a new mapper.
throws Doctrine_Connection_Exception if there are no opened connections




Comments (0) [ add comment ]
No Comments
Add Comment