Looking at the documentation, a resultset should have an update() function I should be able to use like:
public function initialize(){
$this->hasMany('session_id','Store\Model\ItemHold','session_id',['alias'=>'ItemHold']);
}
...
public function updateHold(){
$this->ItemHold->update(['date'=>date(DATE_MYSQL)]);
}
However, I get an error saying the function isn't found. Looking at the documentation for the class, there is no mention of the update() function.
So, does it exist? Is there any way to update every record in a resultset?