This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace ReincorporacionBundle\DataFixtures\ORM; | |
use AppBundle\Entity\Usuario; | |
use Doctrine\Common\Persistence\ObjectManager; | |
use Doctrine\Common\DataFixtures\AbstractFixture; | |
use Doctrine\Common\DataFixtures\OrderedFixtureInterface; | |
use ReincorporacionBundle\Entity\Desincorporacion; | |
use Symfony\Component\DependencyInjection\ContainerAwareInterface; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @param Transicion $transicion | |
* @return array | |
*/ | |
public function getEstadosPosiblesSegunTransicion(Transicion $transicion) { | |
$em = $this->getDoctrine()->getManager(); | |
$estados = $em->getRepository('TramiteBundle:Estado')->findAll(); | |
$new_estados = []; |