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