2022-03-13 19:32:32 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Core\Entity\Site\Page;
|
|
|
|
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
|
2022-11-19 19:35:28 +01:00
|
|
|
#[ORM\Entity]
|
2022-03-13 19:32:32 +01:00
|
|
|
class CollectionBlock extends Block
|
|
|
|
{
|
|
|
|
public function getValue()
|
|
|
|
{
|
|
|
|
return json_decode(parent::getValue(), true);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setValue($value): self
|
|
|
|
{
|
|
|
|
return parent::setValue(json_encode($value));
|
|
|
|
}
|
|
|
|
}
|