public function __construct(array $options = array()) { parent::__construct($options); $segment_options = $this->_options; $segment_options['parents'][] = $segment_options['parent_alias']; // enforce temporal parent/child constraints if (isset($segment_options['segment_classname'])) { $segment_options['className'] = $segment_options['segment_classname']; unset($segment_options['segment_classname']); } else { unset($segment_options['className']); // let it default } unset($segment_options['children']); // interferes with Doctrine_Record_Generator $this->_plugin = new Doctrine_Record_Generator_TemporalSegment($segment_options); $this->_options['children'][] = $this->_options['child_alias']; // enforce temporal parent/child constraints }