Log message #3150395

# At Username Text
# Jan 30th 2014, 20:24 the-neon retrieve?
# Jan 30th 2014, 20:23 the-neon when you say show... you mean?
# Jan 30th 2014, 20:23 Nick____ how hard is it to only show child pages based on a variable too? so only show child pages where active=1
# Jan 30th 2014, 20:23 the-neon Nick___ yup! you got it
# Jan 30th 2014, 20:23 the-neon Nick___ careful on your declaration tho, I had a weird error because I was careless
# Jan 30th 2014, 20:22 Nick____ https://gist.github.com/anonymous/6ad1338cf012cc56f51d
# Jan 30th 2014, 20:22 kerin Just felt inelegant :/
# Jan 30th 2014, 20:22 Nick____ I think I found it :)
# Jan 30th 2014, 20:22 the-neon kerin, sweet
# Jan 30th 2014, 20:22 kerin BackEndCoder, the-neon, no longer an issue. Wrote a loop to make pretty arrays, done and done
# 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