lithium\data\collection\DocumentSet::sync PHP Method

sync() public method

public sync ( $id = null, array $data = [], array $options = [] )
$data array
$options array
    public function sync($id = null, array $data = array(), array $options = array())
    {
        $defaults = array('materialize' => true);
        $options += $defaults;
        if ($options['materialize']) {
            $this->_exists = true;
        }
        $this->offsetGet(null);
        $this->_original = $this->_data;
    }