Log message #1109068

# At Username Text
# Oct 22nd 2009, 05:10 ixopo lol
# Oct 22nd 2009, 05:09 dakota lol
# Oct 22nd 2009, 05:09 Mike_MnD dakota: sorry for the question but don't knw why every time i see you righting i imagine Dakota Fanning :D
# Oct 22nd 2009, 05:09 dakota ^ I though that topic had been discussed at length already
# Oct 22nd 2009, 05:09 ixopo i just wanted to add the MaxLength Rule
# Oct 22nd 2009, 05:08 dakota Mike_MnD: Not the last time I checked
# Oct 22nd 2009, 05:08 ixopo yes i use the MediaPlugin, but as i wrote all Other ValidationRules are working perfect
# Oct 22nd 2009, 05:08 swordz Actually, just ignore me
# 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