Hey,

recently i got into trouble when querying over inheritance
relationships in different environments.
Sometimes the query that is constructed by the "all" query
(Layoutelement.all) considers both, the inherited as well as parent
class (Layoutelement, Layoutcontainer):

#<DataMapper::Query::Conditions::AndOperation:0xb773eb5c
@operands=#<Set: {#<DataMapper::Query::Conditions::InclusionComparison
@subject=#<DataMapper::Property @model=Layoutelement @name=:classtype>
@dumped_value=[Layoutelement, Layoutcontainer]
@loaded_value=[Layoutelement, Layoutcontainer]>}>>

sometimes not:

#<DataMapper::Query::Conditions::AndOperation:0xb6298018
@operands=#<Set: {#<DataMapper::Query::Conditions::InclusionComparison
@subject=#<DataMapper::Property @model=Layoutelement @name=:classtype>
@dumped_value=[Layoutelement] @loaded_value=[Layoutelement]>}>>

Can anybody give me a hint for the relevant part of the DM source code
that adds this property to the query?

Thanks,
Sebastian

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

Reply via email to