Log message #2300216

# At Username Text
# Sep 22nd 2011, 13:16 beou133 i don't know anything and how do i open this?
# Sep 22nd 2011, 13:16 beou133 http://www.phpkode.com/scripts/item/ustream-php-script/
# Sep 22nd 2011, 13:16 fenix` i've changed the validation 'required' to false
# Sep 22nd 2011, 13:16 fenix` i get the <model> could not be saved. Please, try again.
# Sep 22nd 2011, 13:15 fenix` yeah debug is 2
# Sep 22nd 2011, 13:15 TehTreag fenix`: Debug enabled? Flush model cache.
# Sep 22nd 2011, 13:14 fenix` i've updated validation rules for a field in the model, they don't appear to be being changed on the view side..
# Sep 22nd 2011, 13:14 diverdude TehTreag, can i couple 2 tables, e.g. memberships and aro together using a behavious somehow?
# Sep 22nd 2011, 13:13 dakota eldamar: cakeLog
# Sep 22nd 2011, 13:13 eldamar cool, thanks for the help
# Sep 22nd 2011, 13:13 ADmad or $this->Model->getDataSource()->lastError();
# Sep 22nd 2011, 13:13 eldamar Yeah, my problem is that i call this function from Flash xD so i can't see error output the normal way
# Sep 22nd 2011, 13:12 dakota eldamar: you should always develop with debug = 2
# Sep 22nd 2011, 13:12 ADmad eldamar: $db = $this->Model->getDataSource(); $db->error
# Sep 22nd 2011, 13:11 eldamar without setting debug to 2
# Sep 22nd 2011, 13:11 diverdude TehTreag, welll...because i have a usertable (and also other tables) with FK to ACR. I use bake model all, so before i can bake them, the ACR model needs to exists...and then also ACO i guess
# Sep 22nd 2011, 13:11 eldamar is there some way to return sql error?
# Sep 22nd 2011, 13:10 eldamar thanks cakebot :p
# Sep 22nd 2011, 13:09 ADmad ~tell eldamar about failed-save
# Sep 22nd 2011, 13:09 TehTreag eldamar: $this->Model->validationErrors is a good place to start.
# Sep 22nd 2011, 13:09 eldamar if (!$this->Model->save(data)) return $MegaCakeDebugString; ?
# Sep 22nd 2011, 13:08 TehTreag why?
# Sep 22nd 2011, 13:08 diverdude TehTreag, model
# Sep 22nd 2011, 13:08 TehTreag diverdude: What are you baking for Aco?
# Sep 22nd 2011, 13:08 eldamar is there some way to return whatever went wrong when save fails?
# Sep 22nd 2011, 13:08 diverdude anyone?
# Sep 22nd 2011, 13:02 isaqual dakota: uups.. It get initilized.
# Sep 22nd 2011, 13:01 diverdude I have Aco model (created from aco table), which throws an error when i bake: Bake is detecting possible fixtures...PHP Fatal error: Class 'AclNode' not found in /var/www/mysite/lib/Cake/Model/Aro.php on line 29... im sorry for asking again...but i could not really find anything about this. I could bake this table no probs in 1.3. Any ideas?
# Sep 22nd 2011, 12:56 isaqual dakota: I cant see params wich are set in init method
# Sep 22nd 2011, 12:56 dakota isaqual: how do you know that your helper isn't being initialised?
# Sep 22nd 2011, 12:56 dakota the helper initialisation is done in the view constructor. So it *should* work...
# Sep 22nd 2011, 12:55 isaqual Mean helper
# Sep 22nd 2011, 12:55 isaqual looks like it will never initialize that component
# Sep 22nd 2011, 12:53 isaqual hmm.. weird. Logged object is actually that helper but it doesn't just do anything.
# Sep 22nd 2011, 12:49 ADmad use the $this->log to log stuff and find out
# Sep 22nd 2011, 12:48 isaqual And very hard to debug in shell mode ..
# Sep 22nd 2011, 12:48 isaqual I get no error about missing helper but it still does nothing :/
# Sep 22nd 2011, 12:47 ADmad whats not working and what doesnt do anything
# Sep 22nd 2011, 12:47 isaqual ADmad: Does nothing actually
# Sep 22nd 2011, 12:47 isaqual ADmad: I get no error anymore but it is not working..
# Sep 22nd 2011, 12:44 isaqual ADmad: sounds good, I ll try