Пример #1
0
 public function insert($option, $tableName = null, HydratorInterface $hydrator = null)
 {
     $optionId = parent::insert($option, $tableName, $hydrator);
     $option = $this->find(array('option_id' => $optionId));
     return $option;
 }
Пример #2
0
 public function insert($choice, $tableName = null, HydratorInterface $hydrator = null)
 {
     $choiceId = parent::insert($choice, $tableName, $hydrator);
     return $this->find(array('choice_id' => $choiceId));
 }