Log message #3150385

# At Username Text
# Jan 30th 2014, 20:22 the-neon the book has an example on relationships between the same model
# Jan 30th 2014, 20:22 the-neon Nick____, yes
# Jan 30th 2014, 20:21 Nick____ Is it possible to do a join within the same model? for example a page may have a parent_id column, so I want to get ALL pages where parent ID is null (all parents) and then within the array of the page get all child pages
# Jan 30th 2014, 20:20 kerin I misspoke earlier
# Jan 30th 2014, 20:20 kerin the-neon, fetchAll
# Jan 30th 2014, 20:20 chris______ Here it is the debugged $this->request->data and $relationshipData http://bin.cakephp.org/view/1274421597
# Jan 30th 2014, 20:20 the-neon is that array through Containable or a chain find?
# Jan 30th 2014, 20:19 BackEndCoder why its giving you 0 arrays inside i don't know howeverf
# Jan 30th 2014, 20:19 BackEndCoder you will have to malipulate it before you push it to the view
# Jan 30th 2014, 20:19 the-neon yeah
# Jan 30th 2014, 20:19 BackEndCoder as its clearly not
# Jan 30th 2014, 20:19 BackEndCoder it will only come out how you would prefer if its all from the same table
# Jan 30th 2014, 20:18 BackEndCoder it pushes it out with numbers in it when it doesn't know what to call the fields
# Jan 30th 2014, 20:18 kerin no
# Jan 30th 2014, 20:18 BackEndCoder yeah are you using a count or something werid ?
# Jan 30th 2014, 20:17 kerin example :)
# Jan 30th 2014, 20:17 kerin http://pastebin.com/meRfuiGX
# Jan 30th 2014, 20:17 BackEndCoder kerin, sorry that was too many big words
# Jan 30th 2014, 20:17 the-neon both of you actually
# Jan 30th 2014, 20:16 the-neon thanks mate
# Jan 30th 2014, 20:16 the-neon haha
# Jan 30th 2014, 20:16 BackEndCoder ACTION hides
# Jan 30th 2014, 20:16 todds freakin backendcoder
# Jan 30th 2014, 20:16 BackEndCoder sweet
# Jan 30th 2014, 20:16 the-neon HUH.
# Jan 30th 2014, 20:16 the-neon THAT WORKED.
# Jan 30th 2014, 20:16 kerin BackEndCoder, the returned array has the columns for each table in my multi-table query in its own sub-array
# Jan 30th 2014, 20:16 BackEndCoder aye
# Jan 30th 2014, 20:16 the-neon $this->request->data['CustomerPrice'] then
# Jan 30th 2014, 20:15 BackEndCoder P
# Jan 30th 2014, 20:15 the-neon nvm
# Jan 30th 2014, 20:15 todds your data array
# Jan 30th 2014, 20:15 the-neon $data?
# Jan 30th 2014, 20:15 BackEndCoder kerin, columns ?
# Jan 30th 2014, 20:15 the-neon wait.
# Jan 30th 2014, 20:14 the-neon i'll try it BackEndCoder
# Jan 30th 2014, 20:14 the-neon todds, nope
# Jan 30th 2014, 20:14 todds bahâ?¦ freakin backendcoder
# Jan 30th 2014, 20:14 kerin is there any way to do a cakephp findAll query and have all columns at the same level
# Jan 30th 2014, 20:14 BackEndCoder try $this->CustomerPrice->saveAll($data['CustomerPrice']);
# Jan 30th 2014, 20:14 todds the-neon -- do you have any beforeSave() or beforeValidate() methods?