sf4 deprecated: migrate Doctrine ORM mapping to annotation

This commit is contained in:
2020-07-24 16:46:46 +02:00
parent 97d3afba9b
commit d39666bf8e
10 changed files with 423 additions and 286 deletions

View File

@@ -20,18 +20,28 @@
namespace Chill\PersonBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* MaritalStatus
*
* @ORM\Entity()
* @ORM\Table(name="chill_person_marital_status")
* @ORM\HasLifecycleCallbacks()
*/
class MaritalStatus
{
/**
* @var string
*
* @ORM\Id()
* @ORM\Column(type="string", length=7)
*/
private $id;
/**
* @var string array
* @ORM\Column(type="json_array")
*/
private $name;