Re: [CakePHP : The Rapid Development Framework for PHP] #6275: [TEST] saveAll passes when habtm with model fails validation
#6275: [TEST] saveAll passes when habtm with model fails validation ---+ Reporter: ifunk | Owner: jperras Type: Bug |Status: new Priority: Medium | Milestone: 1.2.x.x Component: Model | Version: 1.2 Final Severity: Normal |Resolution: Keywords: | Php_version: n/a Cake_version: | ---+ Changes (by jperras): * owner: = jperras * status: reopened = new -- Ticket URL: https://trac.cakephp.org/ticket/6275#comment:4 CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/ Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups tickets cakephp group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to tickets-cakephp+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #6275: [TEST] saveAll passes when habtm with model fails validation
#6275: [TEST] saveAll passes when habtm with model fails validation ---+ Reporter: ifunk | Owner: Type: Bug |Status: new Priority: Medium | Milestone: 1.2.x.x Component: Model | Version: 1.2 Final Severity: Normal |Resolution: Keywords: | Php_version: n/a Cake_version: | ---+ Comment (by phally): I think you need to pass 'validate' = 'first' with the save all: {{{ $TestModel-JoinThing-validate = array('doomed' = array('rule' = 'notEmpty')); $TestModel-hasAndBelongsToMany['SomethingElse']['unique'] = false; $data = array( 'Something' = array('title' = ''), 'SomethingElse' = array(array('something_else_id' = 1, 'doomed' = '')) ); $TestModel-create(); $result = $TestModel-saveAll($data, array('validate' = 'first')); $this-assertFalse($result); }}} That passes. -- Ticket URL: https://trac.cakephp.org/ticket/6275#comment:1 CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/ Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups tickets cakephp group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to tickets-cakephp+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #6275: [TEST] saveAll passes when habtm with model fails validation
#6275: [TEST] saveAll passes when habtm with model fails validation ---+ Reporter: ifunk | Owner: Type: Bug |Status: reopened Priority: Medium | Milestone: 1.2.x.x Component: Model | Version: 1.2 Final Severity: Normal |Resolution: Keywords: | Php_version: n/a Cake_version: | ---+ Changes (by ifunk): * status: closed = reopened * resolution: invalid = Comment: Sorry Joel, did you try phally's patch before closing? His modifications don't pass on mine. -- Ticket URL: https://trac.cakephp.org/ticket/6275#comment:3 CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/ Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups tickets cakephp group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to tickets-cakephp+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---