function crearNivel($data) { $nivel = new Nivel(); $nivel->setNombre($data['nombre']); $nivel->setInstructor($data['instructor']); $this->em->persist($nivel); $this->em->flush(); }
public function setInstructor($instructor) { $this->__load(); return parent::setInstructor($instructor); }