# |
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? |
# |
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 |