# |
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? |
# |
Jan 30th 2014, 20:14 |
the-neon |
ACTION hangs on |
# |
Jan 30th 2014, 20:13 |
BackEndCoder |
hang on |
# |
Jan 30th 2014, 20:13 |
BackEndCoder |
it should just insert all of that data |
# |
Jan 30th 2014, 20:13 |
the-neon |
BackEndCoder, there is no validation currently |
# |
Jan 30th 2014, 20:13 |
chris______ |
I'm back now |
# |
Jan 30th 2014, 20:12 |
chris______ |
sorry sorry, I had to go out for a moment |
# |
Jan 30th 2014, 20:12 |
the-neon |
I have the save in an if() where if it doesn't save I set an error flash message |
# |
Jan 30th 2014, 20:12 |
BackEndCoder |
try it without validation |
# |
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 |