#5953: Model::save should allow for specifying a "blacklist" of fieldnames.
-------------------------------------------+--------------------------------
    Reporter:  NOSLOW                      |         Owner:            
        Type:  Enhancement                 |        Status:  closed    
    Priority:  Low                         |     Milestone:  1.3.x.x   
   Component:  Model                       |       Version:            
    Severity:  Minor                       |    Resolution:  worksforme
    Keywords:  Save, Whitelist, Blacklist  |   Php_version:  n/a       
Cake_version:                              |  
-------------------------------------------+--------------------------------
Changes (by nate):

  * status:  new => closed
  * resolution:  => worksforme

Comment:

 The Model class doesn't need more public API members just to accomplish
 this:
 [[BR]]
 {{{
 $blackList = array('protected', 'fields', 'here');
 $this->Model->save($this->data, true, array_diff(array_keys($this->
 Model->schema()), $blackList);
 }}}
 [[BR]]
 Done.

-- 
Ticket URL: <https://trac.cakephp.org/ticket/5953#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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to