# |
Sep 22nd 2011, 17:08 |
scoutmstershke |
thats was on fox news last night lol |
# |
Sep 22nd 2011, 17:07 |
TooMuchCaffeine |
wow. i have a strong feeling of deja-vu. and i think it was the warden and model::save episode |
# |
Sep 22nd 2011, 17:07 |
TheWarden |
diverdude: yeah that is a tough one and I'm don't know enough unfortunately to help you. sorry. Check your php.ini memory related settings they may need to be set higher other that that I don't know. |
# |
Sep 22nd 2011, 17:07 |
scoutmstershke |
do you have foreignkey set in your has many array? |
# |
Sep 22nd 2011, 17:07 |
scoutmstershke |
should be fine there |
# |
Sep 22nd 2011, 17:07 |
scoutmstershke |
ok then thats correct |
# |
Sep 22nd 2011, 17:06 |
TheWarden |
scoutmstershke: okay well that is the case then as my primary key of dongle_keys is id which is linked to dongle_keys_hardwares.dongle_keys_id. |
# |
Sep 22nd 2011, 17:06 |
diverdude |
TheWarden, yep...i had it also when doing other types of programming...but never in php...And especially since i am running cake script and not my own code |
# |
Sep 22nd 2011, 17:05 |
scoutmstershke |
your primary key needs to me the key of the current model that you want to use to link to the (field your matching)foriegn key of the model you trying to link |
# |
Sep 22nd 2011, 17:05 |
TheWarden |
diverdude: just saying that if you are getting that its not a good sign and no I haven't had it with cake but have with other issues relating to memory. |
# |
Sep 22nd 2011, 17:05 |
TooMuchCaffeine |
robcowie: all you had to do it look at source ) |
# |
Sep 22nd 2011, 17:05 |
robcowie |
thanks, that is what I needed to know |
# |
Sep 22nd 2011, 17:04 |
diverdude |
TheWarden, me? |
# |
Sep 22nd 2011, 17:04 |
TheWarden |
scoutmstershke: am I right? |
# |
Sep 22nd 2011, 17:04 |
TooMuchCaffeine |
robcowie: afair saveAll only works with linked models. direct links. deeper associations are not saved |
# |
Sep 22nd 2011, 17:04 |
scoutmstershke |
nvm |
# |
Sep 22nd 2011, 17:04 |
TheWarden |
I haven't.. not a good sign if you are getting that. |
# |
Sep 22nd 2011, 17:03 |
diverdude |
Did anybody experience problems with an error "Segmentation fault" when doing cake bake model all before? |
# |
Sep 22nd 2011, 17:03 |
TheWarden |
scoutmstershke: how am I loading the models you mean? |
# |
Sep 22nd 2011, 17:02 |
TheWarden |
scoutmstershke: I added this to my $hasMany 'foreignKey' => 'dongle_keys_id' my understanding is that the dongle_keys table.id (primary) would then link to to table dongle_keys_hardwares.dongle_keys_id (not primary, primary key is id). |
# |
Sep 22nd 2011, 17:02 |
robcowie |
I've been beating my head all day. Does savaall work with more than one nested model? |
# |
Sep 22nd 2011, 17:02 |
scoutmstershke |
how are you loading those files? |
# |
Sep 22nd 2011, 17:01 |
TooMuchCaffeine |
robcowie: improvise god dam it. |
# |
Sep 22nd 2011, 17:01 |
TheWarden |
scoutmstershke: yes... I'm convinced its not actually finding the dongle_keys_hardware.php file even though its present where the donglekey.php is located. |
# |
Sep 22nd 2011, 17:01 |
scoutmstershke |
the* |
# |
Sep 22nd 2011, 17:00 |
scoutmstershke |
are primary and foriegn keys that same? |
# |
Sep 22nd 2011, 17:00 |
robcowie |
read that already, it is about multiple top level items, but I only have one, I can't expand the info in that post to what I want to do |
# |
Sep 22nd 2011, 16:59 |
TooMuchCaffeine |
robcowie: i believe this is what you are looking for http://nuts-and-bolts-of-cakephp.com/2009/03/26/saveall-with-multiple-records-and-for-multiple-models/ |
# |
Sep 22nd 2011, 16:59 |
scoutmstershke |
the error is about the hardware table right |
# |
Sep 22nd 2011, 16:59 |
ujjain |
Anybody who uses the variable $TIME_START? I wonder why it's undefined for me. |
# |
Sep 22nd 2011, 16:59 |
TheWarden |
scoutmstershke: thanks, I like this idea and I'll look into it but I feel I should understand the basic method first and get this to work then venture into this other method. As what I'm trying to do is suppose to work. |
# |
Sep 22nd 2011, 16:57 |
TheWarden |
sorry I am, still nothing has resolved it. |
# |
Sep 22nd 2011, 16:57 |
TheWarden |
btw, another thing to note is that when I change the name of my table to web_dongle_keys_hardwares the error still doesn't go away. However I don't want the web_ in the database table name though. |
# |
Sep 22nd 2011, 16:57 |
TooMuchCaffeine |
oh. you are still on donglekeys??? |
# |
Sep 22nd 2011, 16:57 |
scoutmstershke |
http://mark-story.com/posts/view/using-bindmodel-to-get-to-deep-relations |
# |
Sep 22nd 2011, 16:56 |
TheWarden |
the primary key in the dongle_keys_hardwares is id though. |
# |
Sep 22nd 2011, 16:56 |
robcowie |
I get that part, and it works with application to multiple applicants, but I can't get it to work with multiple residences linked to the applicants. I can't find any docs to point me in the right direction |
# |
Sep 22nd 2011, 16:55 |
TheWarden |
okay.. I thought of something else maybe this is the issue here... the dongle_keys table has an id column that then links to the dongles_key_hardwares table that is linked in that table to the column dongle_keys_id. Is there anything more I need to do for that to work with present configuration? |
# |
Sep 22nd 2011, 16:55 |
scoutmstershke |
and once it calls it, it automaticly un binds |
# |
Sep 22nd 2011, 16:55 |
scoutmstershke |
hard to find one sec I 'll show you an example |
# |
Sep 22nd 2011, 16:54 |
scoutmstershke |
yeah build your form in the view then pass the $this->data to $this->model->SaveAll($data); |