Doctrine


Doctrine\ORM\Persisters\JoinedSubclassPersister
/Doctrine/ORM/Persisters/JoinedSubclassPersister.php at line 36

Class JoinedSubclassPersister

Class:JoinedSubclassPersister - Superclass: AbstractEntityInheritancePersister
Class:AbstractEntityInheritancePersister - Superclass: StandardEntityPersister
StandardEntityPersister
⌊ AbstractEntityInheritancePersister
⌊ JoinedSubclassPersister

public class JoinedSubclassPersister
extends AbstractEntityInheritancePersister

The joined subclass persister maps a single entity instance to several tables in the database as it is defined by the Class Table Inheritance strategy.

Author:
Roman Borschel
License:
http://www.opensource.org/licenses/lgpl-license.php LGPL
See Also:
www.doctrine-project.org
Since:
2.0
See Also:
http://martinfowler.com/eaaCatalog/classTableInheritance.html
Todo:
Rename: BasicEntityPersister

Method Summary
void

delete(object entity)

{@inheritdoc}

array

executeInserts()

{@inheritdoc}

string

getOwningTable(string fieldName)

Gets the name of the table that owns the column the given field is mapped to.

void

update(object entity)

{@inheritdoc}

Method Detail

/Doctrine/ORM/Persisters/JoinedSubclassPersister.php at line 210

delete

public void delete(object entity)

Parameters:
entity - The entity to delete.

/Doctrine/ORM/Persisters/JoinedSubclassPersister.php at line 100

executeInserts

public array executeInserts()

Returns:
An array of any generated post-insert IDs. This will be an empty array if the entity class does not use the IDENTITY generation strategy.

/Doctrine/ORM/Persisters/JoinedSubclassPersister.php at line 78

getOwningTable

public string getOwningTable(string fieldName)

Gets the name of the table that owns the column the given field is mapped to.

Override.

/Doctrine/ORM/Persisters/JoinedSubclassPersister.php at line 187

update

public void update(object entity)

Parameters:
entity - The entity to update.

Doctrine