In-Table Foreign Keys in DataMapper ORM |
[eluser]tarciozemel[/eluser]
Yeah, it's true. My fault not put the schema. Fortunately, consulting the documentation more deeper, a find the solution: the "join_other_as" and "join_self_as" atributes. I use table names unlike the indicated in docs, so it's necessary use this atributes on definition of the relatioship variables. For example: Code: var $has_one = array( For more information, see that page of the documentation: http://datamapper.wanwizard.eu/pages/adv...tions.html Thank you! |
Messages In This Thread |
In-Table Foreign Keys in DataMapper ORM - by El Forum - 05-28-2011, 01:19 PM
In-Table Foreign Keys in DataMapper ORM - by El Forum - 05-29-2011, 02:35 PM
In-Table Foreign Keys in DataMapper ORM - by El Forum - 05-29-2011, 03:12 PM
In-Table Foreign Keys in DataMapper ORM - by El Forum - 05-30-2011, 01:10 AM
In-Table Foreign Keys in DataMapper ORM - by El Forum - 08-03-2011, 09:15 AM
In-Table Foreign Keys in DataMapper ORM - by El Forum - 08-03-2011, 09:29 AM
In-Table Foreign Keys in DataMapper ORM - by El Forum - 08-03-2011, 11:35 AM
In-Table Foreign Keys in DataMapper ORM - by El Forum - 08-03-2011, 12:46 PM
In-Table Foreign Keys in DataMapper ORM - by El Forum - 08-04-2011, 11:50 AM
|