for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Silverback\ApiComponentBundle\Entity\Component\Gallery;
use ApiPlatform\Core\Annotation\ApiResource;
use Doctrine\ORM\Mapping as ORM;
use Silverback\ApiComponentBundle\Entity\Component\AbstractComponent;
use Silverback\ApiComponentBundle\Entity\Content\ComponentGroup;
/**
* Class Gallery
* @package Silverback\ApiComponentBundle\Entity\Component\Gallery
* @author Daniel West <[email protected]>
* @ApiResource(shortName="component/gallery")
* @ORM\Entity()
*/
class Gallery extends AbstractComponent
{
public function __construct()
parent::__construct();
$this->addValidComponent(GalleryItem::class);
$this->addComponentGroup(new ComponentGroup());
}
public function onDeleteCascade(): bool
return true;