Log message #1109060

# At Username Text
# Oct 22nd 2009, 05:08 Mike_MnD dakota are you female ?
# Oct 22nd 2009, 05:08 swordz Or lots of them are
# Oct 22nd 2009, 05:08 swordz Actually, they're all custom
# Oct 22nd 2009, 05:07 ixopo k one sec
# Oct 22nd 2009, 05:07 swordz ixopo Can you paste the checkExtension function?
# Oct 22nd 2009, 05:05 ixopo http://bin.cakephp.org/view/1495842087
# Oct 22nd 2009, 05:05 ixopo hi everybody, can someone please have a short look over my validation rule ? i tried to add a new rule "maxLength" but i allways get error "Array to string conversion [CORE/cake/libs/validation.php, line 598]". All other ValidationRules working perfect. Heres the Validation
# Oct 22nd 2009, 05:03 NoReGreT haha
# Oct 22nd 2009, 05:03 dogmatic69 pawned by MVC
# Oct 22nd 2009, 05:02 NoReGreT exactly..
# Oct 22nd 2009, 05:02 dogmatic69 ACTION gives NoReGreT a noddy badge :)
# Oct 22nd 2009, 05:02 dakota lol
# Oct 22nd 2009, 05:02 dakota EPIC FAIL
# Oct 22nd 2009, 05:02 dakota I believe this is the right time for:
# Oct 22nd 2009, 05:02 dogmatic69 lol
# Oct 22nd 2009, 05:02 NoReGreT yeah... :S
# Oct 22nd 2009, 05:02 dogmatic69 do you have it in the controller?
# Oct 22nd 2009, 05:01 dogmatic69 yip
# Oct 22nd 2009, 05:01 dakota yeah
# Oct 22nd 2009, 05:01 NoReGreT ok, I think I did something very wrong, beforeSave should be in the model, right ?
# Oct 22nd 2009, 05:00 dogmatic69 i think so
# Oct 22nd 2009, 05:00 NoReGreT should i call it ?
# Oct 22nd 2009, 05:00 dogmatic69 parent::beforeSave()
# Oct 22nd 2009, 05:00 NoReGreT records are added fine
# Oct 22nd 2009, 05:00 NoReGreT it is saving fine
# Oct 22nd 2009, 04:59 dogmatic69 ->save( $data, array( 'validate' => false
# Oct 22nd 2009, 04:59 NoReGreT dogmatic69: no errors, it is saving fine (ok, now i know what you meant by saving :)
# Oct 22nd 2009, 04:59 dakota Are there validation errors?
# Oct 22nd 2009, 04:59 dakota do you call $this->Model->save() in your controller?
# Oct 22nd 2009, 04:59 NoReGreT dakota: i guess so
# Oct 22nd 2009, 04:59 dakota ah, so its not calling beforeSave
# Oct 22nd 2009, 04:58 dogmatic69 well it need to be able to save before it will use beforeSave... are there validation errors or something
# Oct 22nd 2009, 04:58 NoReGreT but it's not
# Oct 22nd 2009, 04:58 NoReGreT dakota: i meant it should print/debug the array then die
# Oct 22nd 2009, 04:58 NoReGreT dogmatic69: saving what ? i'm ust debug()ing to see the array
# Oct 22nd 2009, 04:57 dakota cake caching is so awesome
# Oct 22nd 2009, 04:57 dakota NoReGreT: Why would it print die? it should just die
# Oct 22nd 2009, 04:57 dogmatic69 NoReGreT: is it saving?
# Oct 22nd 2009, 04:56 dogmatic69 anyone got a good reason why ->read() is not ->read( $id, $conditions ); instead of ->read( $conditions, $id ); ?
# Oct 22nd 2009, 04:56 NoReGreT i'm putting a debug($this->data); die; in beforeSave(), shouldn't it just print the die ? it's not printing nore dying...
# Oct 22nd 2009, 04:53 dogmatic69 you can do that or you can replace a normal ->find() with ->paginate()