On Mar 13, 1:24 pm, Robert Neville <[email protected]> wrote:
> I tried passing a string to relation and it complained that it wasn't
> expecting a string. I saw elsewhere on these posts that someone had said
> that SA worked that way, but either I'm not doing it right or it really
> doesn't work that way...maybe it's a bug I don't know.

You can pass a string if you're using the Declarative syntax, because
otherwise you wouldn't be able to declare these circular dependencies.
With the separate mapper, you can declare the circular dependencies
ok, by putting the mapper after the classes.

Another solution, if you didn't want to put the model classes in the
same file, might be to use a 3rd file to break the cycle. The mapper
could go in there, perhaps. It's hard to imagine the exact problem
without seeing the code but in general adding a 3rd file to split the
dependency is usually possible.

--
Ben Sizer

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to