Elemele: no, I did what Marco said. Used an unique single-field id.
Here's my entities:
/** @ORM\Entity */
class Secao {
protected $inputFilter;
/**
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
* @ORM\Column(type="integer")
*/
protected $seccodigo = null;
/** @ORM\Column(type="string",length=100) */
protected $nome;
/** @ORM\Column(type="string",length=3000) */
protected $descricao;
/**
*
* @ORM\OneToMany(targetEntity="SubSecao", mappedBy="secao")
*/
protected $subsecoes;
}
/** @ORM\Entity */
class SubSecao {
protected $inputFilter;
/**
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
* @ORM\Column(type="integer")
*/
protected $sbscodigo = null;
/** @ORM\Column(type="string",length=100) */
protected $nome;
/** @ORM\Column(type="string",length=3000) */
protected $descricao;
/**
* @ORM\ManyToOne(targetEntity="Secao", inversedBy="subsecoes")
* @ORM\JoinColumn(name="seccodigo", referencedColumnName="seccodigo")
*/
protected $secao;
}
2014-04-05 15:13 GMT-03:00 elemele <[email protected]>:
> Giorgio,
> I have the same problem. Do you found another workaround to resolve this
> problem ?
>
> regards
> Paul
>
> W dniu piątek, 25 października 2013 16:46:41 UTC+2 użytkownik Giorgio
> Fellipe Santos napisał:
>
>> It really hurts...
>> At the moment the solution I got was remove my Secao relationship from
>> the primary key of my Subsecao, but it isn't a good solution for my data
>> model
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "doctrine-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/doctrine-user/TdJfFurWMP4/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/doctrine-user.
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.