# |
Oct 22nd 2009, 10:46 |
Ceeram |
tables that are created by the test are MyIsam |
# |
Oct 22nd 2009, 10:45 |
xbb |
hello |
# |
Oct 22nd 2009, 10:44 |
markstory |
that should be fine. |
# |
Oct 22nd 2009, 10:44 |
Ceeram |
hmm im on 5.0.22 |
# |
Oct 22nd 2009, 10:43 |
markstory |
are you using more software from the ark? |
# |
Oct 22nd 2009, 10:43 |
markstory |
5.0.86 |
# |
Oct 22nd 2009, 10:43 |
Ceeram |
markstory: what mysql version are you using? |
# |
Oct 22nd 2009, 10:41 |
nicoleG |
there are some real knowledgeable people in here too |
# |
Oct 22nd 2009, 10:41 |
nicoleG |
yup |
# |
Oct 22nd 2009, 10:41 |
Horror |
good learning experience for sure. |
# |
Oct 22nd 2009, 10:40 |
nicoleG |
i'm a few weeks into it and love it, just a new way of thinking for me |
# |
Oct 22nd 2009, 10:40 |
nicoleG |
me too |
# |
Oct 22nd 2009, 10:40 |
Horror |
i'm 1 week cake newbie myself - just scattering everywhere to find solutions and syntax |
# |
Oct 22nd 2009, 10:40 |
nicoleG |
now i still gotta figure out how to paginate a custom query |
# |
Oct 22nd 2009, 10:39 |
nicoleG |
) |
# |
Oct 22nd 2009, 10:39 |
Horror |
nicoleG: all sexy now - works! thanks for the help man |
# |
Oct 22nd 2009, 10:39 |
nicoleG |
let me know what happens |
# |
Oct 22nd 2009, 10:39 |
nicoleG |
var $primaryKey = 'subId' in the model it's a primary key and add it as a foreign key in the related model |
# |
Oct 22nd 2009, 10:39 |
Horror |
which you initially told me |
# |
Oct 22nd 2009, 10:38 |
Horror |
that might be it |
# |
Oct 22nd 2009, 10:38 |
Horror |
nope. no pk delcared in the model template |
# |
Oct 22nd 2009, 10:36 |
nicoleG |
pk* |
# |
Oct 22nd 2009, 10:36 |
nicoleG |
have you declared your primary key in the model it's a pl for and the same field as a foreign key in the model it relates to? |
# |
Oct 22nd 2009, 10:35 |
Horror |
nicoleG: might be something with read() |
# |
Oct 22nd 2009, 10:34 |
nicoleG |
i'm still a new baker :) |
# |
Oct 22nd 2009, 10:34 |
nicoleG |
1 sec, looking around |
# |
Oct 22nd 2009, 10:33 |
Horror |
nicoleG: yeah. I want to change the default from what cakes uses |
# |
Oct 22nd 2009, 10:32 |
nicoleG |
or just for that particular model? |
# |
Oct 22nd 2009, 10:32 |
nicoleG |
which is what you want, right Horror? |
# |
Oct 22nd 2009, 10:32 |
nicoleG |
i think there's a way to change the fields cake uses by default for models |
# |
Oct 22nd 2009, 10:30 |
alan|macbook |
it's been 3 days since i'm googling around and experimenting with no luck and i would really appreicate some help. I have a tree model and i want to do something like this : http://crepitus.com/misc/ext/tree.html How the heck do i do that with cakePHP??? |
# |
Oct 22nd 2009, 10:29 |
nicoleG |
i would think cake would know to use it for that particular model in all crud operations |
# |
Oct 22nd 2009, 10:29 |
Horror |
nicoleG: in the mysql query it is using model.id ='' - I want it to compare it with model.subId instaed |
# |
Oct 22nd 2009, 10:28 |
alan|macbook |
hey all |
# |
Oct 22nd 2009, 10:28 |
Horror |
nicoleG: how do i go about telling edit() to use subId once i declare that primaryKey? |
# |
Oct 22nd 2009, 10:28 |
t0nic |
i *hate* that!!! ('fraid it will pop up again...) |
# |
Oct 22nd 2009, 10:27 |
t0nic |
BlackIce: gd it, turned debug on and off and it went away |
# |
Oct 22nd 2009, 10:27 |
nicoleG |
) |
# |
Oct 22nd 2009, 10:26 |
Ceeram |
markstory: any ideas what could be causing the wrong data format on the test |
# |
Oct 22nd 2009, 10:26 |
Horror |
nicoleG: i'll give that a try. Thanks! |
# |
Oct 22nd 2009, 10:26 |
nicoleG |
i think that will work |