Hi, and thanks,
I'm using Doctrine2/Symfony3 framework.
Look at the section table. There are 5 fields and in my entity file, i've two fields:
<?php
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(
* name="Sections",
* indexes={
* @ORM\Index(name="ParentID", columns={"IssueID","ParentID"}),
* @ORM\Index(name="Sections_Sections", columns={"ParentID","id"})
* }
* )
*/
class Sections
{
/**
* @ORM\Column(type="string", length=255, nullable=true, options={"default":NULL})
*/
private $Name;
/**
* @ORM\Column(type="integer", nullable=true, options={"default":NULL})
*/
private $Position;
}
