public function getCustomerName() { if ($this->Customer) { return $this->Customer->getName01() . " " . $this->Customer->getName02(); } else { return "未ログイン"; } }
protected function createSendCustomer(\Plugin\MailMagazine\Entity\MailMagazineSendHistory $SendHistory, \Eccube\Entity\Customer $MailCustomer) { // ----------------------------- // plg_send_customer // ----------------------------- $sendId = $SendHistory->getId(); // Entity $SendCustomer = new MailMagazineSendCustomer(); // data $SendCustomer->setSendId($sendId); $SendCustomer->setCustomerId($MailCustomer->getId()); $SendCustomer->setEmail($MailCustomer->getEmail()); $SendCustomer->setName($MailCustomer->getName01() . " " . $MailCustomer->getName02()); $this->app['eccube.plugin.mail_magazine.repository.mail_magazine_send_customer']->updateSendCustomer($SendCustomer); return $SendCustomer; }