protected function validateUserInput($aData, $oItem = null)
    {
        $aData = parent::validateUserInput($aData, $oItem);

        list($sModel) = $this->getModelClassAndId();
        $aData['model'] = $sModel;

        return $aData;
    }
protected function validateUserInput($aData, $oItem = null)
    {
        $aData = parent::validateUserInput($aData, $oItem);

        list($sModel) = $this->getModelClassAndId();
        $aData['model'] = $sModel;

        return $aData;
    }
protected function validateUserInput ( $ aData , $ oItem = null ) { $ aData = parent :: validateUserInput ( $ aData , $ oItem ) ; list ( $ sModel ) = $ this -> getModelClassAndId ( ) ; $ aData [ 'model' ] = $ sModel ; return $ aData ; }
Validates user input; adds the model to the response

@param array     $aData The user data to validate
@param \stdClass $oItem The current object (when editing)

@return array
@throws ApiException
@throws FactoryException
Validates user input ; adds the model to the response