protected function saveField(Field $field, $newRevision)
    {
        // If we create a new revision, this will
        // reinit the field to a non-saved field
        // and create a new row in the database
        if ($newRevision) {
            $field->id = null;
            $field->exists = false;
        }

        $field->revision_id = $this->revision->id;

        $field->save();
    }
protected function saveField(Field $field, $newRevision)
    {
        // If we create a new revision, this will
        // reinit the field to a non-saved field
        // and create a new row in the database
        if ($newRevision) {
            $field->id = null;
            $field->exists = false;
        }

        $field->revision_id = $this->revision->id;

        $field->save();
    }
protected function saveField ( Field $ field , $ newRevision ) { // If we create a new revision, this will // reinit the field to a non-saved field // and create a new row in the database if ( $ newRevision ) { $ field -> id = null ; $ field -> exists = false ; } $ field -> revision_id = $ this -> revision -> id ; $ field -> save ( ) ; }
Save a single field instance

@param Field $field The field instance to save
@param bool $newRevision Should we create a new revision?
Save a single field instance