[Flow] Error: The property "***" on the subject does not exist. (1302855001)
Kevin Sam
itskevinsam at yahoo.co.in
Fri Jan 2 05:46:10 CET 2015
I have a model (Acl) in which i have a protected property named as aclFiles (which is a doctrine collection) which is a OneToMany relation to another model(file (which has a manyToOne relation pointing to the property *aclFiles*)) . I do have a getter for that property but for some unknown reasons flow is dumping me a property doesnt exist..
Sample Code (relevent parts)
// Acl.php
==============================
/**
* @var \Doctrine\Common\Collections\Collection<\Doc\FileManager\Domain\Model\File>
* @ORM\OneToMany(targetEntity="\Dev\FileManager\Domain\Model\File",mappedBy="acl")
* @ORM\JoinColumns({@ORM\JoinColumn(name="file_id",referencedColumnName="id")})
*/
protected $aclFiles;
public function __construct()
{
$this->sharedUsers=new \Doctrine\Common\Collections\ArrayCollection();
$this->sharedGroups=new \Doctrine\Common\Collections\ArrayCollection();
$this->aclFiles=new \Doctrine\Common\Collections\ArrayCollection();
}
public function addAclFiles(\Dev\FileManager\Domain\Model\File $file)
{
$this->aclFiles->add($file);
}
public function removeAclFiles(\Dev\FileManager\Domain\Model\File $file)
{
$this->aclFiles->removeElement($file);
}
public function getAclFiles()
{
return $this->aclFiles;
}
And on File.php Entity i have,
===========================
/**
* @var \Dev\FileManager\Domain\Model\Acl
* @ORM\ManyToOne(targetEntity="\Dev\FileManager\Domain\Model\Acl",inversedBy="aclFiles")
* @ORM\JoinColumns({@ORM\JoinColumn(name="acl_id",referencedColumnName="id")})
*/
protected $acl;
And, i was able to get a workey version on a core doctrine build. So just wanted to check whether this is an *issue* related to Flow.
More information about the Flow
mailing list