public function insert($option, $tableName = null, HydratorInterface $hydrator = null) { $optionId = parent::insert($option, $tableName, $hydrator); $option = $this->find(array('option_id' => $optionId)); return $option; }
public function insert($choice, $tableName = null, HydratorInterface $hydrator = null) { $choiceId = parent::insert($choice, $tableName, $hydrator); return $this->find(array('choice_id' => $choiceId)); }