Nie mam doświadczenia większego z DoctrineMigrationBundle. Dodałem encję w symfony a komenda doctrine:migration:diff mówi że nie ma zmian. Jakie mogą być przyczyny?
<?php
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
/**
* @ORM\Entity
* @ORM\Table(name="document_category")
*/
class DocumentCategory
{
/**
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="integer")
*/
private $parent_id;
/**
* @ORM\Column(type="string")
*/
private $name;
/**
* @ORM\OneToMany(targetEntity="AppBundle\Entity\Documents", mappedBy="category")
*/
private $Documents;
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @return mixed
*/
public function getParentId()
{
return $this->parent_id;
}
/**
* @param mixed $parent_id
*/
public function setParentId($parent_id)
{
$this->parent_id = $parent_id;
}
/**
* @return mixed
*/
public function getName()
{
return $this->name;
}
/**
* @param mixed $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return ArrayCollection|IntraDocuments[]
*/
public function getIntraDocuments()
{
return $this->intraDocuments;
}
public function __construct()
{
$this->intraDocuments = new ArrayCollection();
}
}