Log message #3150336

# At Username Text
# Jan 30th 2014, 20:12 the-neon nope
# Jan 30th 2014, 20:12 BackEndCoder is it not saving anything at all ?
# Jan 30th 2014, 20:12 the-neon how could I find out WHY isn't it saving?
# Jan 30th 2014, 20:11 BackEndCoder yep
# Jan 30th 2014, 20:11 the-neon todds, yeah
# Jan 30th 2014, 20:11 BackEndCoder that should work, and insert everything
# Jan 30th 2014, 20:11 todds $this->CustomerPrice->saveAll($data); right?
# Jan 30th 2014, 20:11 Nick____ I am trying to get parent / child pages working so it can have sub pages although I have got it working it is the wrong way round, IF it has a parent_id then each page shows the parent page whereas I need the parent page to show each child page?
# Jan 30th 2014, 20:11 todds that's fine.
# Jan 30th 2014, 20:11 the-neon yeah
# Jan 30th 2014, 20:11 the-neon from the CustomerPrices controller
# Jan 30th 2014, 20:10 the-neon wait
# Jan 30th 2014, 20:10 BackEndCoder yeah you are using your CustomerPrice->saveAll() right ?
# Jan 30th 2014, 20:10 the-neon yeah
# Jan 30th 2014, 20:10 todds are you calling the save from the CustomerPrice model?
# Jan 30th 2014, 20:10 Nick____ Hi all,
# Jan 30th 2014, 20:10 the-neon (
# Jan 30th 2014, 20:10 the-neon id fields are int, price is decimal
# Jan 30th 2014, 20:10 the-neon no validation rules
# Jan 30th 2014, 20:09 todds so the save is returning false. are there any validation rules? also, check the data types for the table rows.
# Jan 30th 2014, 20:08 the-neon I... get my error flash message
# Jan 30th 2014, 20:08 todds I believe you need saveAll(). do you get an error?
# Jan 30th 2014, 20:07 the-neon I had it at saveAll() then save()
# Jan 30th 2014, 20:07 todds the-neon: are you doing save() or saveMany()?
# Jan 30th 2014, 20:05 the-neon BackEndCoder: http://bin.cakephp.org/view/338066217
# Jan 30th 2014, 20:02 the-neon let me bin that for you
# Jan 30th 2014, 20:02 the-neon the model exists
# Jan 30th 2014, 20:01 BackEndCoder so say .. Article->save() will only save its cateogrys if its a Article hasMany Categories
# Jan 30th 2014, 20:01 BackEndCoder the save() will only work if the model is naturall already associated with the model you are saving
# Jan 30th 2014, 20:00 BackEndCoder and bin it
# Jan 30th 2014, 20:00 BackEndCoder debug() your data array
# Jan 30th 2014, 20:00 the-neon BackEndCoder, if the save() isn't working... how to find why? debugKit isn't giving me much to work with
# Jan 30th 2014, 19:59 liamkeily rather than going through the array unlocking each index and field.
# Jan 30th 2014, 19:59 BackEndCoder or you could just do a direct save on the joining table
# Jan 30th 2014, 19:59 liamkeily is it possible to unlock an array of fields in one line?
# Jan 30th 2014, 19:59 todds ah, this one speaks spanish. :)
# Jan 30th 2014, 19:59 BackEndCoder with some pretty arrays of data
# Jan 30th 2014, 19:59 BackEndCoder i singular save(); etc
# Jan 30th 2014, 19:58 BackEndCoder then a normal hasMany will be fine
# Jan 30th 2014, 19:58 the-neon it's an admin panel but I was thinking a form per customer
# Jan 30th 2014, 19:58 BackEndCoder otherwise it will look just has a normal hasMany save