private function processForm($values)
    {
        $form = $this->getForm($this->record);
        $form->bind($values, $this->record);

        if ($form->isValid()) {
            return $this->record->save();
        }

        $this->form = $form;
        throw new InvalidFormException();
    }
private function processForm($values)
    {
        $form = $this->getForm($this->record);
        $form->bind($values, $this->record);

        if ($form->isValid()) {
            return $this->record->save();
        }

        $this->form = $form;
        throw new InvalidFormException();
    }
private function processForm ( $ values ) { $ form = $ this -> getForm ( $ this -> record ) ; $ form -> bind ( $ values , $ this -> record ) ; if ( $ form -> isValid ( ) ) { return $ this -> record -> save ( ) ; } $ this -> form = $ form ; throw new InvalidFormException ( ) ; }
Processes form with provided values

@param $values
@return mixed
@throws Scaffolding\Exception\InvalidFormException
@internal
Processes form with provided values