Friday, 15 April 2011

doctrine2 - Symfony 2.6 mapping errors OneToMany inverse side field -


I'm looking for why I found an error with my mapping, but I really do not see it. I make some issues red in stack but it does not work for me.

Error: Association CTC \ bundle \ user bundle \ unit \ address # address type type inverse side field CTC \ Bundle \ AdminBundle \ Entity \ AddressType # address that exists Are not there.

Secondly, I am also surprised that when I use my "Principle: I use Institutions ..

Type the address of the class

class address type

/ P>

  ... / * * @ sir array * * @ ORM \ OneToMany (targetEntity = "CTC \ bundle \ user bundle \ existence address", mapped = "address type") * * / private $ addresses; public function __ composition () {$ this-> address = new ArrayCollection ();} ...  

class address

  / ** * @ORM \ ManyToOne (targetEntity = " CTC \ B Dull \ AdminBundle \ Entity \ AddressType ", inversedBy =" address ") * @ORM \ JoinColumn (name =" addressTypeID ", referenced column name =" address typed ") * / personal $ addressType;  

Any help would be greatly appreciated.

OK, in this * * typewrite class, I

bundle \ user bundle \ unit \ address "

  / * * @var array * * @ORM \ OneToMany (targetEntity =" CTC \ ")  

Mapped = "address type") * * / private $ addresses;

This

I only work after one "" and "and everything works!

Private $ addresses;


No comments:

Post a Comment