public function save() { $this->_data['lastrun'] = new \MongoDate(); parent::save(); }
public function save() { if (!$this->_data['killTime'] instanceof \MongoDate) { if (is_array($this->_data['killTime'])) { $this->_data['killTime'] = new \MongoDate($this->_data['killTime']['sec'], $this->_data['killTime']['usec']); } } $this->_data['saved'] = new \MongoDate(); parent::save(); }