saveMany validation not working correctly

2015-07-06 Thread Javi
I'm trying to do this With last 2.x CakePHP version, I'm trying to do a upload multiple file form with validations but not working... *DocsController.php (action add)* if ($this->request->is('post')) { if ($this->Doc->saveMany($this->request->data, array('deep' => true))) { $this->

Problems with relationships without Auto increment

2015-07-06 Thread Ronaldo Matos Rodrigues
I have the following relationships Contact HABTM List list HABTM Contact Only I had to take my auto_increment primaryKey ID field from the contact table, I'm having problem when using INSERT IGNORE. To replace the auto_incremente created the following trigger: DECLARE AUTOI int UNSIGNED DEFA