. */ 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 StandardEntityPersister { /** @override */ protected function _prepareData($entity, array &$result, $isInsert = false) { parent::_prepareData($entity, $result, $isInsert); // Populate the discriminator column if ($isInsert) { $discColumn = $this->_class->discriminatorColumn; $result[$this->_class->primaryTable['name']][$discColumn['name']] = $this->_class->discriminatorValue; } } }