Has anyone run across a function similar to bindModel and unbindModel which
to me would be called updateModel()

 

Basically, I've run across several situations where I just need to update
the model's limit or ordering and finding that I have to use the bindModel
and repeat everything that was in the model before.  

 

I am a big fan of Don't Repeat Yourself, so an updateModel function would be
super handy.

 

I was thinking of just doing something like this
$this->ModelName->belongsTo['OtherModelName']['order']='something new';

 

Any thoughts???

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"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/cake-php?hl=en

Reply via email to