ご返信ありがとうございます。
Shipping.phpを参考に以下のコードを書いたのですが、データをコピーすることが出来ませんでした。
お手数ですが、改善点を教えて頂けますでしょうか。
<?php
namespace Customize\Controller;
use Eccube\Controller\ProductController;
use Eccube\Entity\Product;
use Customize\Entity\Ticket;
class TicketController
{
/**
* Copy product.
*
* @param \Eccube\Entity\Product $Product
*
* @return \Eccube\Entity\Ticket $Ticket
*/
public function setTicket(Product $Product, Ticket $Ticket)
{
if($Product) {
$this
->setProductId($Product->getId())
->setName($Product->getName())
->setNote($Product->getNote())
->setDescriptionList($Product->getDescriptionList())
->setDescriptionDetail($Product->getDescriptionDetail())
->setSearchWord($Product->getSearchWord())
->setFreeArea($Product->getFreeArea())
->setCreateDate($Product->getCreateDate())
->getUpdateDate($Product->getUpdateDate());
return $this;
}
}
}