On Oct 24, 2011, at 2:56 PM, Maurizio Nagni wrote:
>
> sqlalchemy.exc.InvalidRequestError: Implicitly combining column
> mo_onlineresource.mo_applicationProfile with column
> ci_onlineresource.applicationProfile under attribute 'applicationProfile'.
> Please configure one or more attributes for these same-named columns
> explicitly.
ci_onlineresource_table still names it "applicationProfile" so there is still
an instruction here to implicitly combine that column under the
applicationProfile name, which already has a different column present. If you
want them to be synonymous, that every value assigned to
MO_OnlineResource.applicationProfile should populate both columns identically
in all cases, you need to say that explicitly:
mapper(MO_OnlineResource,
mo_onlineresource_table.join(ci_onlineresource_table), properties={
'applicationProfile': [mo_onlineresource_table.c.mo_applicationProfile,
ci_onlineresource_table.c.applicationProfile]
})
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" 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/sqlalchemy?hl=en.