Exemplo n.º 1
0
 /**
  * @param Job $entity
  * @return Job
  */
 protected function persist($entity)
 {
     $companyId = $entity->getCompanyId();
     $company = $this->getCompanyManager()->find($companyId);
     $skills = $this->getSkillManager()->findByArrayId($entity->getSkillIds());
     $entity->setCompany($company);
     $entity->setSkills($skills);
     return $entity;
 }