Hmm. This is supposed to work. Can you create a ticket for it in the
Doctrine trac? http://trac.doctrine-project.org

Thanks, Jon

On Wed, Apr 1, 2009 at 4:48 PM, kaio <kaiopt...@gmail.com> wrote:

>
> I'm doing exactly this, and it doesn't work...
>
> schema.yml
> ---
> Resource:
>    actAs: [Timestampable]
>    columns:
>        master_id:
>            type: integer
>            notnull: false # nullable so master resource rows can set
> it after insert
>    relations:
>        Master:
>            class: Resource
>            local: master_id
>            foreign: id
>            foreignAlias: Embodiments
>
> fixtures.yml
> ---
> Resource:
>  Resource_1:
>    Master: Resource_1
>    embodiment: all_browsers
>    url: /resources/styles.css
>
> The master_id is always null if it's self-referential; not null if it
> isn't. I've tried switching the relation around so it goes the other
> way and that doesn't work either.
>
> K
>
> On Mar 26, 3:26 pm, Jonathan Wage <jonw...@gmail.com> wrote:
> > Hmm. This works in Doctrine because all objects are created first before
> any
> > of them are linked together.
> >
> > - Jon
> >
> > On Thu, Mar 26, 2009 at 2:13 PM, Loïc Vernet <qrf_c...@yahoo.fr> wrote:
> > > Table:
> > >   Object_1:
> > >     default_language_id: Object_1
> >
> > > This code obviously doesn't work...
> >
> > > ++
> >
> > > COil
> >
> > --
> > Jonathan H. Wage
> > Open Source Software Developer &
> Evangelisthttp://www.jwage.comhttp://www.doctrine-project.orghttp://
> www.symfony-project.org
>
> >
>


-- 
Jonathan H. Wage
Open Source Software Developer & Evangelist
http://www.jwage.com
http://www.doctrine-project.org
http://www.symfony-project.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to