Exemplo n.º 1
0
 /**
  * Add agencies
  *
  * @param \Enigmatic\CRMBundle\Entity\Agency $agencies
  * @return Contact
  */
 public function addAgency(\Enigmatic\CRMBundle\Entity\Agency $agencies)
 {
     $this->agencies[] = $agencies;
     $agencies->addContact($this);
     return $this;
 }
Exemplo n.º 2
0
 /**
  * Remove agencies
  *
  * @param \Enigmatic\CRMBundle\Entity\Agency $agencies
  */
 public function removeAgency(\Enigmatic\CRMBundle\Entity\Agency $agencies)
 {
     $this->agencies->removeElement($agencies);
 }
Exemplo n.º 3
0
 /**
  * @Secure(roles={"ROLE_RS"})
  */
 public function viewAction(Agency $agency)
 {
     return $this->get('enigmatic.render')->render($this->renderView('EnigmaticCRMBundle:Agency:view.html.twig', array('agency' => $agency, 'map' => $this->get('enigmatic_crm.service.map')->generateAction($agency->getAddress() . ', ' . $agency->getCity()->getName() . ' ' . $agency->getCity()->getCanonicalZipcode(), $agency->getName(), '400px', '400px;'))));
 }