@@ -26,7 +26,7 @@ doctrine: | |||
Lc\CaracoleBundle\Model\Credit\CreditHistoryInterface: App\Entity\Credit\CreditHistory | |||
Lc\CaracoleBundle\Model\File\DocumentInterface: App\Entity\File\Document | |||
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\OrderProductInterface: App\Entity\Order\OrderProduct | |||
Lc\CaracoleBundle\Model\Order\OrderProductReductionCatalogInterface: App\Entity\Order\OrderProductReductionCatalog |
@@ -5,6 +5,7 @@ namespace App\Controller\Dashboard; | |||
use App\Entity\Config\TaxRate; | |||
use App\Entity\Config\Unit; | |||
use App\Entity\Merchant\Merchant; | |||
use App\Entity\Newsletter\Newsletter; | |||
use App\Entity\PointSale\PointSale; | |||
use App\Entity\Section\Section; | |||
use App\Entity\Site\News; | |||
@@ -47,6 +48,7 @@ class DashboardAdminController extends CaracDashboardController | |||
[ | |||
MenuItem::linkToCrud('admin_merchant', '', Merchant::class), | |||
MenuItem::linkToCrud('admin_section', '', Section::class), | |||
MenuItem::linkToCrud('newsletters', '', Newsletter::class), | |||
MenuItem::linkToCrud('admin_tva', '', TaxRate::class), | |||
MenuItem::linkToCrud('admin_unit', '', Unit::class), | |||
] |
@@ -0,0 +1,14 @@ | |||
<?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; | |||
} | |||
} |
@@ -2,15 +2,14 @@ | |||
namespace App\Entity\Newsletter; | |||
use Lc\CaracoleBundle\Repository\Newsletter\NewsletterRepository; | |||
use Lc\SovBundle\Repository\Newsletter\NewsletterRepository; | |||
use Doctrine\ORM\Mapping as ORM; | |||
use Lc\CaracoleBundle\Model\Newsletter\NewsletterInterface; | |||
use Lc\CaracoleBundle\Model\Newsletter\NewsletterModel; | |||
/** | |||
* @ORM\Entity(repositoryClass=NewsletterRepository::class) | |||
*/ | |||
class Newsletter extends NewsletterModel implements NewsletterInterface | |||
class Newsletter extends NewsletterModel | |||
{ | |||
/** | |||
* @ORM\Id |