Пример #1
0
 public function save()
 {
     $this->_data['lastrun'] = new \MongoDate();
     parent::save();
 }
Пример #2
0
 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();
 }