Ok, Reaactor has been good for me but for the last couple of days I
swear it is out to get me
My reactor XML
<objects name="pets" alias="pets">
<hasOne name="pet_breed" alias="pet_breedRelation">
<relate from="pet_breed_id" to="pet_breed_id" />
</hasOne>
</objects>
<objects name="pet_breed" alias="pet_breed">
<hasMany name="pets" alias="breedRelation">
<relate from="pet_breed_id" to="pet_breed_id" />
</hasMany>
</objects>
The code
<cfset var pets = variables.ormService.createGateway('pets') />
<cfset var query = pets.createQuery()>
<cfset var petQry = "">
<cfset query.join("pets", "pet_breed", "pet_breedRelation") />
<cfset petQry = pets.getByQuery(query) />
<cfdump var="#petQry#"><cfabort>
It's probably cause I am tired but I cannot see what I'm doing wrong here?
Cheers for any help!
Andy
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --