Log message #2300576

# At Username Text
# 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);
# Sep 22nd 2011, 16:54 TheWarden scoutmstershke: sounds like a better route but no I haven't done that. This should work though but as for the bind model, where do I read on this? I must have missed it or don't recall.
# Sep 22nd 2011, 16:53 scoutmstershke so instead of having that association always parseing mysql databse it only pull when needed
# Sep 22nd 2011, 16:53 robcowie I can't work syntax for the form helper to make saveAll work, any pointers?
# Sep 22nd 2011, 16:53 robcowie I asked earlier, but got called away: I have a few models - application has many applicants, applicant has many residences, residence has one address, and want a form for a new application that has 2 applicants, with 3 residences and address for each. Can I do that with saveAll, or do I need to step through the $this->data array in the controller and save like that?
# Sep 22nd 2011, 16:53 spongebob Hi, a quick question re updateAll(). The docs show examples ofâ?¦ array('Baker.created <=' => $this_year) and array('Ticket.customer_id' => 453) for the conditions arrays. Does this mean that the equals is taken for granted on the second one and it doesn't need to beâ?¦ array('Ticket.customer_id =' => 453)
# Sep 22nd 2011, 16:53 scoutmstershke rob just ask your questions
# Sep 22nd 2011, 16:52 scoutmstershke done vis the controller