src/Charcoal/Property/ObjectProperty.php
protected function collectionModelLoader()
    {
        $loader = $this->collectionLoader();

        if (!$loader->hasModel()) {
            $loader->setModel($this->proto());

            $pagination = $this->pagination();
            if (!empty($pagination)) {
                $loader->setPagination($pagination);
            }

            $orders = $this->orders();
            if (!empty($orders)) {
                $loader->setOrders($orders);
            }

            $filters = $this->filters();
            if (!empty($filters)) {
                $loader->setFilters($filters);
            }
        }

        return $loader;
    }
protected function collectionModelLoader()
    {
        $loader = $this->collectionLoader();

        if (!$loader->hasModel()) {
            $loader->setModel($this->proto());

            $pagination = $this->pagination();
            if (!empty($pagination)) {
                $loader->setPagination($pagination);
            }

            $orders = $this->orders();
            if (!empty($orders)) {
                $loader->setOrders($orders);
            }

            $filters = $this->filters();
            if (!empty($filters)) {
                $loader->setFilters($filters);
            }
        }

        return $loader;
    }
protected function collectionModelLoader ( ) { $ loader = $ this -> collectionLoader ( ) ; if ( ! $ loader -> hasModel ( ) ) { $ loader -> setModel ( $ this -> proto ( ) ) ; $ pagination = $ this -> pagination ( ) ; if ( ! empty ( $ pagination ) ) { $ loader -> setPagination ( $ pagination ) ; } $ orders = $ this -> orders ( ) ; if ( ! empty ( $ orders ) ) { $ loader -> setOrders ( $ orders ) ; } $ filters = $ this -> filters ( ) ; if ( ! empty ( $ filters ) ) { $ loader -> setFilters ( $ filters ) ; } } return $ loader ; }
Retrieve the prepared model collection loader.

@return CollectionLoader
Retrieve the prepared model collection loader .