Browse Source

Crud Newsletter

ideas
Guillaume 3 years ago
parent
commit
595fe5f28c
4 changed files with 19 additions and 4 deletions
  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 View File

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

+ 2
- 0
src/Controller/Dashboard/DashboardAdminController.php View File

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

+ 14
- 0
src/Controller/Newsletter/NewsletterAdminController.php View File

<?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 View File



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

Loading…
Cancel
Save