protected function validColumns(Memory $meta, array $columns, $table, $model)
    {
        if (empty($not = array_diff($columns, $meta->getAttributes($model))) === false) {
            throw new ExceptionFactory('Column', ['COLUMN_DOES_NOT_EXISTS', $not, $table, $meta->getAttributes($model)]);
        }

        return true;

    }
protected function validColumns(Memory $meta, array $columns, $table, $model)
    {
        if (empty($not = array_diff($columns, $meta->getAttributes($model))) === false) {
            throw new ExceptionFactory('Column', ['COLUMN_DOES_NOT_EXISTS', $not, $table, $meta->getAttributes($model)]);
        }

        return true;

    }
protected function validColumns ( Memory $ meta , array $ columns , $ table , $ model ) { if ( empty ( $ not = array_diff ( $ columns , $ meta -> getAttributes ( $ model ) ) ) === false ) { throw new ExceptionFactory ( 'Column' , [ 'COLUMN_DOES_NOT_EXISTS' , $ not , $ table , $ meta -> getAttributes ( $ model ) ] ) ; } return true ; }
Validate table columns

@param  Memory        $meta  column info
@param  array         $columns
@param  string        $table
@param  mixed         $model selected model
@throws ExceptionFactory
@return boolean
Validate table columns