sf4 deprecated: migrate Doctrine ORM mapping to annotation

This commit is contained in:
2020-07-24 14:51:34 +02:00
parent 3033be78d2
commit 2746d3e003
20 changed files with 434 additions and 410 deletions

View File

@@ -20,18 +20,31 @@
namespace Chill\MainBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Language
*
* @ORM\Entity()
* @ORM\Table(name="language")
* sf4 check, in yml table was set to null !?
* @ORM\Cache(usage="READ_ONLY", region="language_cache_region")
* @ORM\HasLifecycleCallbacks()
*/
class Language
{
/**
* @var string
*
* @ORM\Id()
* @ORM\Column(type="string")
*/
private $id;
/**
* @var string array
*
* @ORM\Column(type="json_array")
*/
private $name;