public function getNotes()
 {
     $this->__load();
     return parent::getNotes();
 }
 /**
  *
  * @param IXP_Form_Contact $form The form object
  * @param \Entities\Contact $object The Doctrine2 entity (being edited or blank for add)
  * @param bool $isEdit True of we are editing an object, false otherwise
  * @return void
  */
 protected function addPostValidate($form, $object, $isEdit)
 {
     $object->setCustomer($this->getD2EM()->getRepository('\\Entities\\Customer')->find($form->getElement('custid')->getValue()));
     $object->setCabinet($this->getD2EM()->getRepository('\\Entities\\Cabinet')->find($form->getElement('cabinetid')->getValue()));
     return true;
 }
 /**
  * Send a welcome email to a new user
  *
  * @param \Entities\Contact $contact The recipient of the email
  * @return bool True if the mail was sent successfully
  */
 private function sendWelcomeEmail($contact)
 {
     try {
         $mail = $this->getMailer();
         // This may be useful... needs more thought first
         // if( defined( APPLICATION_ENV ) && APPLICATION_ENV == 'production' )
         //    ->addCc( $this->getUser()->getEmail(), $this->getUser()->getContact()->getName() );
         $mail->setFrom($this->_options['identity']['email'], $this->_options['identity']['name'])->setSubject($this->_options['identity']['sitename'] . ' - ' . _('Your Access Details'))->addTo($contact->getEmail(), $contact->getName())->setBodyHtml($this->view->render('user/email/html/welcome.phtml'))->send();
     } catch (Zend_Mail_Exception $e) {
         $this->getLogger()->alert("Could not send welcome email for new user!\n\n" . $e->toString());
         return false;
     }
     return true;
 }