. */ namespace Doctrine\ORM\Persisters; /** * Persister for entities that participate in a hierarchy mapped with the * SINGLE_TABLE strategy. * * @author Roman Borschel * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @version $Revision: 3406 $ * @link www.doctrine-project.org * @since 2.0 */ class SingleTablePersister extends AbstractEntityPersister { public function insert($entity) { return parent::insert($entity); } /** @override */ protected function _prepareData($entity, array &$result, $isInsert = false) { parent::_prepareData($entity, $result, $isInsert); // Populate the discriminator column if ($isInsert) { $discColumn = $this->_classMetadata->getDiscriminatorColumn(); $result[$discColumn['name']] = $this->_classMetadata->getDiscriminatorValue(); } } }