Bläddra i källkod

Crud Newsletter

ideas
Guillaume 3 år sedan
förälder
incheckning
595fe5f28c
4 ändrade filer med 19 tillägg och 4 borttagningar
  1. +1
    -1
      config/packages/doctrine.yaml
  2. +2
    -0
      src/Controller/Dashboard/DashboardAdminController.php
  3. +14
    -0
      src/Controller/Newsletter/NewsletterAdminController.php
  4. +2
    -3
      src/Entity/Newsletter/Newsletter.php

+ 1
- 1
config/packages/doctrine.yaml Visa fil

@@ -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

+ 2
- 0
src/Controller/Dashboard/DashboardAdminController.php Visa fil

@@ -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),
]

+ 14
- 0
src/Controller/Newsletter/NewsletterAdminController.php Visa fil

@@ -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
- 3
src/Entity/Newsletter/Newsletter.php Visa fil

@@ -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

Laddar…
Avbryt
Spara