Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function process()
- {
- $offre = $this->entityManager->getRepository("OffreBundle:Offres")->find(1);
- $candidats = $this->entityManager->getRepository("OffreBundle:Candidatures")->findAll();
- $fonctions =
- array('getRegion',
- );
- foreach ($candidats as $candidature) {
- $val = 0;
- foreach($fonctions as $fonction) $val|=($candidature->{$fonction}() == $offre->{$fonction}());
- }
- return $val;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement