for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Silverback API Component Bundle Project
*
* (c) Daniel West <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Silverback\ApiComponentBundle\Entity\Core;
use ApiPlatform\Core\Annotation\ApiResource;
use Doctrine\ORM\Mapping as ORM;
use Silverback\ApiComponentBundle\Entity\Utility\ComponentGroupsTrait;
use Silverback\ApiComponentBundle\Entity\Utility\UiTrait;
/**
* @author Daniel West <[email protected]>
* @ApiResource(attributes={"output"=PageTemplate::class})
* @ORM\Entity
* @ORM\AssociationOverrides({
* @ORM\AssociationOverride(name="route", inversedBy="pageTemplate"),
* @ORM\AssociationOverride(name="componentGroups", inversedBy="pageTemplates")
* })
class PageTemplate extends AbstractPage
{
use UiTrait;
use ComponentGroupsTrait;
* @ORM\ManyToOne(targetEntity="Silverback\ApiComponentBundle\Entity\Core\Layout", inversedBy="pageTemplates")
* @ORM\JoinColumn(nullable=true, onDelete="SET NULL")
* @var Layout|null
public ?Layout $layout;
public function __construct()
parent::__construct();
$this->initComponentGroups();
}
public function __clone()