Log message #2300541

# At Username Text
# 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
# Sep 22nd 2011, 16:52 scoutmstershke it a function that allows you to make associations on the fly I use them were I only need it once
# Sep 22nd 2011, 16:52 TheWarden scoutmstershke: bind model ?
# Sep 22nd 2011, 16:51 TheWarden scoutmstershke: yes the user has access to the table in question.
# Sep 22nd 2011, 16:51 robcowie Can any one help me with using for the form helper with multiple linked models and saveAll
# Sep 22nd 2011, 16:50 TheWarden scoutmstershke: ahh good point I never double checked that... let me go see.. oh man I will kick myself it that is all it is.
# Sep 22nd 2011, 16:50 scoutmstershke and have you tried bind model to see if that would work?
# Sep 22nd 2011, 16:49 TheWarden let me be more clear, the present tables I will be working with within this context all resides on the in the same database.
# Sep 22nd 2011, 16:49 scoutmstershke have you tried just doing a query to make sure it has access to the db?
# Sep 22nd 2011, 16:48 robcowie hello again
# Sep 22nd 2011, 16:48 TheWarden For now yes as I move forward there will be cases that it will be in different database.
# Sep 22nd 2011, 16:48 scoutmstershke same*
# Sep 22nd 2011, 16:48 scoutmstershke ?
# Sep 22nd 2011, 16:48 scoutmstershke are the tables in the sma db
# Sep 22nd 2011, 16:47 TheWarden well presently it is only one database... also keep in mind what you are looking at is a plugin and the database.php is from the app. Therefore this is why I require multiple.
# Sep 22nd 2011, 16:47 ScottO_ and you only need an association in one db
# Sep 22nd 2011, 16:47 TheWarden scoutmstershke: no I haven't actually.
# Sep 22nd 2011, 16:47 ScottO_ but that example is across multiple datbases
# Sep 22nd 2011, 16:46 ScottO_ TheWarden: you may need the 'with' key in the association
# Sep 22nd 2011, 16:46 ScottO_ lol
# Sep 22nd 2011, 16:46 scoutmstershke nvm im wrong anyway
# Sep 22nd 2011, 16:45 ScottO_ scoutmstershke: he shouldnt need usesTable
# Sep 22nd 2011, 16:45 scoutmstershke have you noticed youe $useTable is spelled wrong?
# Sep 22nd 2011, 16:45 TheWarden scoutmstershke: the table is dongle_keys_hardwares there is not prefix of web_. It's not loading the model from what I can tell at all and I don't see any query going to MySQL when I do a <?php echo $this->element('sql_dump'); ?> for that other table.
# Sep 22nd 2011, 16:45 ScottO_ TheWarden: http://www.foldifoldi.com/?p=436
# Sep 22nd 2011, 16:44 ScottO_ its not like you are trying to do an association across multi[ple databases
# Sep 22nd 2011, 16:44 ScottO_ its an association on one db
# Sep 22nd 2011, 16:43 scoutmstershke wtf never seen that error before
# Sep 22nd 2011, 16:43 TheWarden scoutmstershke: I'm just trying to link a table to another table. When I add $hasMany the I get the error of "Error: Database table web_dongle_keys_hardwares for model DongleKeysHardware was not found."
# Sep 22nd 2011, 16:43 ScottO_ TheWarden: its been done many times, and is fully capable of it
# Sep 22nd 2011, 16:42 ScottO_ scoutmstershke: http://pastebin.com/wwTBcfn3
# Sep 22nd 2011, 16:42 TheWarden hopefully I figure out what I've done wrong soon else I guess I may just have to dump this framework... no fault I'm sure them my own but gotta have multiple databases and tables accessible. can't be stuck on this forever you know.
# Sep 22nd 2011, 16:42 scoutmstershke whats your problem and what are you trying to do?
# Sep 22nd 2011, 16:42 scoutmstershke yeah that happens sometimes
# Sep 22nd 2011, 16:41 TheWarden I've talked to a few people here about my issue... I think the assumption is I'm being an idiot and not doing it right so leave him to figure it out and read the book and API.
# Sep 22nd 2011, 16:41 scoutmstershke I've never used multiple databases so I'd be of little to no help