-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hi,
that's expected. tg does it itself, but in console you have to.
alex
remi jolin wrote:
> Hello,
>
> I've just started a new TG project and took the opportunity to switch to
> Elixir.
> Perhaps this issue has been raised before, but I could not find anything
> related.
>
> suppose we have a couple of objects defined as
> class Person(Entity):
> has_field('name', Unicode(32))
> belongs_to('group', of_kind='Group')
>
> class Group(Entity):
> has_field('name', Unicode(32))
> has_many('persons', of_kind='Person')
>
> under tg-admin shell I define
> p1 = Person(name='p1')
> g = Group(name='g')
> p1.group=g
>
> now, if I ask for g.persons, I get a [] which is not what I expected...
> Is this the normal behavior ?? (Elixir 0.3.0)
>
> Of course, if I flush the datas to the DB, clear the session and then
> get the group, (g=Group.get_by(name='g')), g.persons is OK.
>
> >
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iQCVAwUBRnwcStpwN1sq38njAQLTlQQAhup0tE6fW8AAEjBZxuZfth1hsUYcoWQ3
ZWBFV/SxfcTVF/CF7iZ2IFthUVtpwlA6p81fVyHW0w5W/Xjr26bdDuAbWgTwKqOE
/lPqhNXMMlxyoTcWsy+rZithXQDiMC/8o/rPoAkK253z6vLxshsfs8KZ+TnhXW/f
JEArM/yVQ60=
=7JGN
-----END PGP SIGNATURE-----
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SQLElixir" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sqlelixir?hl=en
-~----------~----~----~----~------~----~------~--~---