/** * @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); }
public function __construct(EntityManager $em) { $this->entity = 'Base\\Orm\\Entities\\Category'; parent::__construct($em); }