On 9/11/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I decided to test SVN Trunk to see how it would work with a Project I
> am working on and I got this error out of the box (Which had been
> working 0.3.0):
>
> <type 'exceptions.Exception'>: Couldn't find any relationship in
> 'Header' which match as inverse of the 'headers' relationship defined
> in the 'Version' entity. If you are using inheritance you might need
> to specify inverse relationships manually by using the inverse
> keyword.
>
> Any ideas why it would not run?
I can't tell from what you say. Maybe a stupid suggestion, but here in
your email, the indent of the belongs_to relationship is wrong, is it
correct in your code? Other than that, are you using different files?
Are you accessing (ie querying, instanciating or doing *anything* with
that one entity -- ie the class -- before the other class is defined)?
Does it work when you specify the inverse name explicitly?
has_many('headers',of_kind='Header',lazy=True, inverse='table_version')
Normally your code should work fine, so there must be something
confusing it. I'd need to have a runnable test script in order to see
what happens.
--
Gaƫtan de Menten
http://openhex.org
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---