/**
  * Constructor
  */
 public function __construct(DomainModel $Domain, Core $Core, ModelRepositoryService $mrs, EntityManager $em)
 {
     // Call parent first
     parent::__construct($Domain, $Core, $mrs);
     // Store entity manager and mailbox entity repository
     $this->em = $em;
     $this->er = $em->getRepository('Mailfig:Mailbox');
 }
 /**
  * Constructor
  */
 public function __construct(DomainModel $Domain, Core $Core, ModelRepositoryService $mrs)
 {
     // Call parent first
     parent::__construct($Domain, $Core, $mrs);
     // Connect to LDAP server
     $this->getLdapConfig();
     $this->ldapConnectBind();
 }