src/Charcoal/Loader/CollectionLoader.php
public function load($ident = null, callable $callback = null, callable $before = null)
    {
        // Unused.
        unset($ident);

        $query = $this->source()->sqlLoad();

        return $this->loadFromQuery($query, $callback, $before);
    }
public function load($ident = null, callable $callback = null, callable $before = null)
    {
        // Unused.
        unset($ident);

        $query = $this->source()->sqlLoad();

        return $this->loadFromQuery($query, $callback, $before);
    }
public function load ( $ ident = null , callable $ callback = null , callable $ before = null ) { // Unused. unset ( $ ident ) ; $ query = $ this -> source ( ) -> sqlLoad ( ) ; return $ this -> loadFromQuery ( $ query , $ callback , $ before ) ; }
Load a collection from source.

@param  string|null   $ident    Optional. A pre-defined list to use from the model.
@param  callable|null $callback Process each entity after applying raw data.
Leave blank to use {@see CollectionLoader::callback()}.
@param  callable|null $before   Process each entity before applying raw data.
@throws Exception If the database connection fails.
@return ModelInterface[]|ArrayAccess
Load a collection from source .