src/Charcoal/Admin/Ui/CollectionContainerTrait.php
protected function modelFactory()
    {
        if ($this->modelFactory === null) {
            throw new Exception(sprintf(
                'Model Factory is not defined for "%s"',
                get_class($this)
            ));
        }

        return $this->modelFactory;
    }
protected function modelFactory()
    {
        if ($this->modelFactory === null) {
            throw new Exception(sprintf(
                'Model Factory is not defined for "%s"',
                get_class($this)
            ));
        }

        return $this->modelFactory;
    }
protected function modelFactory ( ) { if ( $ this -> modelFactory === null ) { throw new Exception ( sprintf ( 'Model Factory is not defined for "%s"' , get_class ( $ this ) ) ) ; } return $ this -> modelFactory ; }
Model Factory getter.

@throws Exception If the model factory was not previously set.
@return FactoryInterface
Model Factory getter .