So, I have a categories entity set up with a parent_id
being self-references. But for some reason when I save the entry in the form I get this error.
Fatal error: Cannot inherit previously-inherited or override constant MARKER from interface Doctrine\Common\Persistence\Proxy in /var/www/html/project/vendor/doctrine/orm/lib/Doctrine/ORM/Proxy/Proxy.php on line 30
Can't figure out what it might be. I set the relationship up according to the Doctrine documentation.
/**
* Set parent
*
* @param string $parent
* @return Category
*/
public function setParent($parent)
{
$this->parent = $parent;
return $this;
}
/**
* Get parent
*
* @return string
*/
public function getParent()
{
return $this->parent;
}
Any help would be much appreciated.
setParent()
andgetParent()
are reserved method?