# |
Sep 23rd 2011, 00:58 |
diverdude |
hmm, when i try and run cake bake view all i get: Error: Database table alcoholhabits for model Alcoholhabit was not found. But i have a table called alcholhabits. What could be wrong? |
# |
Sep 23rd 2011, 00:41 |
Seguer |
ddoom_: extract then merge |
# |
Sep 23rd 2011, 00:39 |
ddoom_ |
I can just specify the id which I have |
# |
Sep 23rd 2011, 00:39 |
ddoom_ |
so I don't have to have loops trying to find the correct data in the array |
# |
Sep 23rd 2011, 00:38 |
Seguer |
ddoom_: why? |
# |
Sep 23rd 2011, 00:38 |
Seguer |
diverdude: ok that makes a bit more sense |
# |
Sep 23rd 2011, 00:37 |
ddoom_ |
If I have an array retrieved from a find, is there a way using Set:: to have the key of the array be the id of the model? e.g. array(12 => array('Model' => ..., 35 => array('Model' =>...) |
# |
Sep 23rd 2011, 00:36 |
diverdude |
Seguer, most of them being link tables |
# |
Sep 23rd 2011, 00:35 |
diverdude |
Seguer, ok..its tables |
# |
Sep 23rd 2011, 00:35 |
Seguer |
because a model might need a table but a table doesnt always need a model |
# |
Sep 23rd 2011, 00:34 |
Seguer |
when you say 79 models do you mean models or tables? |
# |
Sep 23rd 2011, 00:34 |
diverdude |
that quickly becomes a lot of tables |
# |
Sep 23rd 2011, 00:34 |
diverdude |
yep |
# |
Sep 23rd 2011, 00:33 |
Seguer |
3 tables |
# |
Sep 23rd 2011, 00:33 |
Seguer |
that's just how habtm works though |
# |
Sep 23rd 2011, 00:32 |
diverdude |
well its not a problem |
# |
Sep 23rd 2011, 00:31 |
diverdude |
table count explodes |
# |
Sep 23rd 2011, 00:31 |
diverdude |
the problem is if there are lots of many2many relationships |
# |
Sep 23rd 2011, 00:30 |
Seguer |
for model in `cat models.txt`; do cake bake "$model"; done |
# |
Sep 23rd 2011, 00:30 |
diverdude |
its just a pitty the cake bake script is so buggy :( |
# |
Sep 23rd 2011, 00:29 |
Seguer |
what the hell sort of application has that many models seriously :o |
# |
Sep 23rd 2011, 00:29 |
diverdude |
79 is not a lot...400 is a lot |
# |
Sep 23rd 2011, 00:29 |
diverdude |
hahaha |
# |
Sep 23rd 2011, 00:29 |
Seguer |
diverdude: a cakephp driven nuclear bomb that flies into space to circumnavigate the sun? |
# |
Sep 23rd 2011, 00:29 |
diverdude |
) |
# |
Sep 23rd 2011, 00:28 |
Seguer |
diverdude: what the hell are you making |
# |
Sep 23rd 2011, 00:28 |
diverdude |
Seguer, yes |
# |
Sep 23rd 2011, 00:28 |
Seguer |
diverdude: wtf 79 models |
# |
Sep 23rd 2011, 00:24 |
diverdude |
S individual baking of 79 models takes forever |
# |
Sep 23rd 2011, 00:23 |
diverdude |
sh0ne, no worries. happy baking :) |
# |
Sep 23rd 2011, 00:23 |
sh0ne |
diverdude: I will take a look right away, thank you for your help, I appreciate it. |
# |
Sep 23rd 2011, 00:20 |
diverdude |
sh0ne, the biggest hassle is the URL reqrite |
# |
Sep 23rd 2011, 00:20 |
diverdude |
sh0ne, they also write what to do with the setup |
# |
Sep 23rd 2011, 00:20 |
diverdude |
sh0ne, otherwise have a look at the blog tutorial |
# |
Sep 23rd 2011, 00:17 |
diverdude |
sh0ne, yes |
# |
Sep 23rd 2011, 00:17 |
sh0ne |
Oh, sorry, I didnt notice that URL...thank you, Iĺl take a look...by the way, is it for security reasons? |
# |
Sep 23rd 2011, 00:16 |
diverdude |
to the value which is in that URL i gave you |
# |
Sep 23rd 2011, 00:16 |
diverdude |
it would be a bad thing if all cake apps used the same salt |
# |
Sep 23rd 2011, 00:16 |
sh0ne |
to what value? |
# |
Sep 23rd 2011, 00:16 |
diverdude |
yes so you should change the salt |
# |
Sep 23rd 2011, 00:15 |
sh0ne |
I just installed it, I mean. |