private function addModelToArraySimpleMode($models, $model)
    {
        $apply_to_models = array();
        
        if (count($models) > 0) {
            foreach ($models as $item) {
                $object = $model->find($item);
                if ($object != null) {
                    $apply_to_models[] = $object;
                }
            }
        }
        
        return $apply_to_models;
    }
private function addModelToArraySimpleMode($models, $model)
    {
        $apply_to_models = array();
        
        if (count($models) > 0) {
            foreach ($models as $item) {
                $object = $model->find($item);
                if ($object != null) {
                    $apply_to_models[] = $object;
                }
            }
        }
        
        return $apply_to_models;
    }
private function addModelToArraySimpleMode ( $ models , $ model ) { $ apply_to_models = array ( ) ; if ( count ( $ models ) > 0 ) { foreach ( $ models as $ item ) { $ object = $ model -> find ( $ item ) ; if ( $ object != null ) { $ apply_to_models [ ] = $ object ; } } } return $ apply_to_models ; }
Add model to array, simple mode, content is NOT JSON string

@param array $models
@param object $model Model

@return array
Add model to array simple mode content is NOT JSON string