public function _beforeSave(AbstractModel $object)
    {

        $object->setUpdatedAt($this->date->gmtDate());
        
        if ($object->isObjectNew()) {
            $object->setCreatedAt($this->date->gmtDate());
        }

        return parent::_beforeSave($object);
    }
public function _beforeSave(AbstractModel $object)
    {

        $object->setUpdatedAt($this->date->gmtDate());
        
        if ($object->isObjectNew()) {
            $object->setCreatedAt($this->date->gmtDate());
        }

        return parent::_beforeSave($object);
    }
public function _beforeSave ( AbstractModel $ object ) { $ object -> setUpdatedAt ( $ this -> date -> gmtDate ( ) ) ; if ( $ object -> isObjectNew ( ) ) { $ object -> setCreatedAt ( $ this -> date -> gmtDate ( ) ) ; } return parent :: _beforeSave ( $ object ) ; }
before save callback

@param AbstractModel|\Limesharp\Stockists\Model\Stores $object
@return $this
before save callback