Log message #2301560

# At Username Text
# Sep 23rd 2011, 13:48 dogmatic69 Bjorns: its not necessary to create models at all in cake
# Sep 23rd 2011, 13:48 Bjorns Is it necessary to create models of linktables?
# Sep 23rd 2011, 13:48 bhp I thought my name was rare, Bjorns ;o]
# Sep 23rd 2011, 13:48 dogmatic69 ADmad: and the second line repeats it, in case you miss the first one...
# Sep 23rd 2011, 13:47 Bjorns Hey.
# Sep 23rd 2011, 13:47 ADmad bioiq: the very first line of the stack trace tells you what the problem is
# Sep 23rd 2011, 13:47 bhp Alright, will get to it, thanks for the help dogmatic69
# Sep 23rd 2011, 13:47 bhp Yeah, that's why I was asking ;o]
# Sep 23rd 2011, 13:46 dogmatic69 if you have transactions in your controller you are doing it wrong
# Sep 23rd 2011, 13:46 bhp Doh! Of course ;o]
# Sep 23rd 2011, 13:46 dogmatic69 bhp: no, you should be doing your save in a model
# Sep 23rd 2011, 13:46 dogmatic69 !tell bioiq about bin
# Sep 23rd 2011, 13:45 bioiq #9 {main}
# Sep 23rd 2011, 13:45 bhp dogmatic69; What's that? I can handle transactions from within the controller?
# Sep 23rd 2011, 13:45 bioiq #8 /usr/share/php/cake/lib/Cake/Console/cake.php(24): ShellDispatcher::run(Array)
# Sep 23rd 2011, 13:45 bioiq #7 /usr/share/php/cake/lib/Cake/Console/ShellDispatcher.php(69): ShellDispatcher->dispatch()
# Sep 23rd 2011, 13:45 bioiq #6 /usr/share/php/cake/lib/Cake/Console/ShellDispatcher.php(176): Shell->runCommand('all', Array)
# Sep 23rd 2011, 13:45 bioiq #5 /usr/share/php/cake/lib/Cake/Console/Shell.php(371): BakeShell->all()
# Sep 23rd 2011, 13:45 bioiq #4 /usr/share/php/cake/lib/Cake/Console/Command/BakeShell.php(143): ModelTask->getName('default')
# Sep 23rd 2011, 13:45 bioiq #3 /usr/share/php/cake/lib/Cake/Console/Command/Task/ModelTask.php(861): ModelTask->listAll('default')
# Sep 23rd 2011, 13:45 bioiq #2 /usr/share/php/cake/lib/Cake/Console/Command/Task/ModelTask.php(780): ModelTask->getAllTables('default')
# Sep 23rd 2011, 13:45 bioiq #1 /usr/share/php/cake/lib/Cake/Console/Command/Task/ModelTask.php(835): ConnectionManager::getDataSource('default')
# Sep 23rd 2011, 13:45 bioiq #0 /usr/share/php/cake/lib/Cake/Model/ConnectionManager.php(92): ConnectionManager::_getConnectionObject('default')
# Sep 23rd 2011, 13:45 bioiq Error: The datasource configuration "default" was not found in database.php
# Sep 23rd 2011, 13:45 bioiq Warning Error: include_once(): Failed opening '/var/www/Config/database.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in [/usr/share/php/cake/lib/Cake/Model/ConnectionManager.php, line 65]
# Sep 23rd 2011, 13:45 bioiq Warning Error: include_once(/var/www/Config/database.php): failed to open stream: No such file or directory in [/usr/share/php/cake/lib/Cake/Model/ConnectionManager.php, line 65]
# Sep 23rd 2011, 13:45 bhp better than nothing
# Sep 23rd 2011, 13:45 dogmatic69 use transactions
# Sep 23rd 2011, 13:44 bhp but well
# Sep 23rd 2011, 13:44 bhp bummer
# Sep 23rd 2011, 13:44 bhp foreach->save()
# Sep 23rd 2011, 13:44 dogmatic69 ye
# Sep 23rd 2011, 13:44 bhp Alright, so I got to recurse through my array to individually save them to get this to work.
# Sep 23rd 2011, 13:44 dogmatic69 habtm is not that great, better the way you have it now
# Sep 23rd 2011, 13:44 bhp Dakota said it would work when not using HABTM, I hadn't seen your message ADmad...
# Sep 23rd 2011, 13:43 dogmatic69 !tell bioiq about broken
# Sep 23rd 2011, 13:43 dogmatic69 still asking the same thing?
# Sep 23rd 2011, 13:43 bioiq ok, command line almost works, but it give me an error when i try 'cake bake all'
# Sep 23rd 2011, 13:43 dogmatic69 <ADmad> bhp: its because cake does not run behavior callbacks on associated models
# Sep 23rd 2011, 13:43 ADmad bhp: juggling your associations won't change the fact i stated earlier
# Sep 23rd 2011, 13:42 bhp sorry