protected function save()
    {
        $this->db->createCommand()->update($this->tableName, [
            'updated_at' => time(),
            'data' => [serialize($this->_states), \PDO::PARAM_LOB],
            ], ['id' => $this->_id])->execute();
    }
protected function save()
    {
        $this->db->createCommand()->update($this->tableName, [
            'updated_at' => time(),
            'data' => [serialize($this->_states), \PDO::PARAM_LOB],
            ], ['id' => $this->_id])->execute();
    }
protected function save ( ) { $ this -> db -> createCommand ( ) -> update ( $ this -> tableName , [ 'updated_at' => time ( ) , 'data' => [ serialize ( $ this -> _states ) , \ PDO :: PARAM_LOB ] , ] , [ 'id' => $ this -> _id ] ) -> execute ( ) ; }
Save client's profile to database
Save client s profile to database