addressTable := self tableNamed: 'address'.
(aDescriptor directToOneMapping)
attributeName: #postCode referenceClass: String;
resultField: (addressTable
fieldNamed: 'postCode');
join: (Join from: (table fieldNamed: 'address')
to: (addressTable fieldNamed: 'primaryKey'));
beForPseudoVariable
And I can simplify the query to
session read: Person where: [:person | person
company postCode = '44227']
Glorp generates the same SQL and it works perfectly.
But how would I specify a pseudo variable in Person that I can write?
session read: Person where: [:person | person postCode = '44227']
I tried different things (other mappings, other queries inclduing a block), but nothing works.
--
You received this message because you are subscribed to the Google Groups "glorp-group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to glorp-group...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/glorp-group/257b3841-c94e-47d8-a1b6-ccc9253a88b9n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/glorp-group/bddad779-6f68-4dfa-88f9-0444e6c7a576n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/glorp-group/72c511d3-b397-4c00-b0c5-51861b6995b1n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/glorp-group/72c511d3-b397-4c00-b0c5-51861b6995b1n%40googlegroups.com.