예제 #1
0
 /**
  * @param array $data
  *
  * @return object
  */
 public function save(array $data = array())
 {
     $data['category'] = $this->em->getRepository('\\Base\\Orm\\Entities\\Category')->find($data['category']);
     return parent::save($data);
 }
예제 #2
0
 public function __construct(EntityManager $em)
 {
     $this->entity = 'Base\\Orm\\Entities\\Category';
     parent::__construct($em);
 }