it means your mappers arent compiling correctly. did you catch an
exception at some point, and then the program continued ? thats
usually what causes that.
> my problem is that in my local configuration I have SQLAlchemy0.4.0
> and collective.lead and my aplication work very well but when i try
> to do the same thing in the server I have this problem:
>
> ArgumentError: Error determining primary and/or secondary join for
> relationship ' Areas.idareatype2 (Areatypes)'. If the underlying
> error cannot be corrected, you should specify the 'primaryjoin' (and
> 'secondaryjoin', if there is an association table present) keyword
> arguments to the relation() function (or for backrefs, by specifying
> the backref using the backref() function with keyword arguments) to
> explicitly specify the join conditions. Nested error is "Can't find
> any foreign key relationships between 'areas' and 'areatypes'"
>
ok....using table reflection for your tables (i.e. autoload=True)?
MySQL with MyISAM (the default) tables ? foreign keys won't reflect
in that case, you have to either specify those columns in your Table
defs manually or use InnoDB tables in your MySQL database.
--
You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+...@googlegroups.com.
To post to this group, send email to sqlal...@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/groups/opt_out.
On 2013년 10월 6일 Sunday at 오후 1:22, Hyunjun Kim wrote:
oh sorry. I thought the subject duplication shouldn't be in the mailing list.I called configure_mappers() right before every query execution, but it does not work still.even one of erroneous class has only single column in table and has no foreign keys or dynamical integration between any other stuffs.how can i fix this?