Lc\CaracoleBundle\Model\Credit\CreditHistoryInterface: App\Entity\Credit\CreditHistory | Lc\CaracoleBundle\Model\Credit\CreditHistoryInterface: App\Entity\Credit\CreditHistory | ||||
Lc\CaracoleBundle\Model\File\DocumentInterface: App\Entity\File\Document | Lc\CaracoleBundle\Model\File\DocumentInterface: App\Entity\File\Document | ||||
Lc\CaracoleBundle\Model\Merchant\MerchantInterface: App\Entity\Merchant\Merchant | Lc\CaracoleBundle\Model\Merchant\MerchantInterface: App\Entity\Merchant\Merchant | ||||
Lc\CaracoleBundle\Model\Newsletter\NewsletterInterface: App\Entity\Newsletter\Newsletter | |||||
Lc\SovBundle\Model\Newsletter\NewsletterInterface: App\Entity\Newsletter\Newsletter | |||||
Lc\CaracoleBundle\Model\Order\OrderPaymentInterface: App\Entity\Order\OrderPayment | Lc\CaracoleBundle\Model\Order\OrderPaymentInterface: App\Entity\Order\OrderPayment | ||||
Lc\CaracoleBundle\Model\Order\OrderProductInterface: App\Entity\Order\OrderProduct | Lc\CaracoleBundle\Model\Order\OrderProductInterface: App\Entity\Order\OrderProduct | ||||
Lc\CaracoleBundle\Model\Order\OrderProductReductionCatalogInterface: App\Entity\Order\OrderProductReductionCatalog | Lc\CaracoleBundle\Model\Order\OrderProductReductionCatalogInterface: App\Entity\Order\OrderProductReductionCatalog |
use App\Entity\Config\TaxRate; | use App\Entity\Config\TaxRate; | ||||
use App\Entity\Config\Unit; | use App\Entity\Config\Unit; | ||||
use App\Entity\Merchant\Merchant; | use App\Entity\Merchant\Merchant; | ||||
use App\Entity\Newsletter\Newsletter; | |||||
use App\Entity\PointSale\PointSale; | use App\Entity\PointSale\PointSale; | ||||
use App\Entity\Section\Section; | use App\Entity\Section\Section; | ||||
use App\Entity\Site\News; | use App\Entity\Site\News; | ||||
[ | [ | ||||
MenuItem::linkToCrud('admin_merchant', '', Merchant::class), | MenuItem::linkToCrud('admin_merchant', '', Merchant::class), | ||||
MenuItem::linkToCrud('admin_section', '', Section::class), | MenuItem::linkToCrud('admin_section', '', Section::class), | ||||
MenuItem::linkToCrud('newsletters', '', Newsletter::class), | |||||
MenuItem::linkToCrud('admin_tva', '', TaxRate::class), | MenuItem::linkToCrud('admin_tva', '', TaxRate::class), | ||||
MenuItem::linkToCrud('admin_unit', '', Unit::class), | MenuItem::linkToCrud('admin_unit', '', Unit::class), | ||||
] | ] |
<?php | |||||
namespace App\Controller\Newsletter; | |||||
use App\Entity\Newsletter\Newsletter; | |||||
use Lc\CaracoleBundle\Controller\Newsletter\NewsletterAdminController as CaracNewsletterAdminController; | |||||
class NewsletterAdminController extends CaracNewsletterAdminController | |||||
{ | |||||
public static function getEntityFqcn(): string | |||||
{ | |||||
return Newsletter::class; | |||||
} | |||||
} |
namespace App\Entity\Newsletter; | namespace App\Entity\Newsletter; | ||||
use Lc\CaracoleBundle\Repository\Newsletter\NewsletterRepository; | |||||
use Lc\SovBundle\Repository\Newsletter\NewsletterRepository; | |||||
use Doctrine\ORM\Mapping as ORM; | use Doctrine\ORM\Mapping as ORM; | ||||
use Lc\CaracoleBundle\Model\Newsletter\NewsletterInterface; | |||||
use Lc\CaracoleBundle\Model\Newsletter\NewsletterModel; | use Lc\CaracoleBundle\Model\Newsletter\NewsletterModel; | ||||
/** | /** | ||||
* @ORM\Entity(repositoryClass=NewsletterRepository::class) | * @ORM\Entity(repositoryClass=NewsletterRepository::class) | ||||
*/ | */ | ||||
class Newsletter extends NewsletterModel implements NewsletterInterface | |||||
class Newsletter extends NewsletterModel | |||||
{ | { | ||||
/** | /** | ||||
* @ORM\Id | * @ORM\Id |