for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Silverback\ApiComponentBundle\Entity\Content\Component\Navigation;
use ApiPlatform\Core\Annotation\ApiProperty;
use Doctrine\ORM\Mapping as ORM;
use Silverback\ApiComponentBundle\Entity\Content\Component\AbstractComponent;
use Silverback\ApiComponentBundle\Entity\Content\ComponentGroup;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* Class AbstractNavigation
* @package Silverback\ApiComponentBundle\Entity\Navigation
* @author Daniel West <[email protected]>
*/
abstract class AbstractNavigation extends AbstractComponent
{
* @ORM\ManyToOne(targetEntity="Silverback\ApiComponentBundle\Entity\Content\ComponentGroup", cascade={"persist"})
* @ApiProperty(attributes={"fetchEager": false})
* @Groups({"layout", "route", "content"})
* @var ComponentGroup
protected $childComponentGroup;
public function __construct()
parent::__construct();
$this->childComponentGroup = new ComponentGroup();
}
* @return ComponentGroup
public function getChildComponentGroup(): ComponentGroup
return $this->childComponentGroup;