Blast\Orm\Entity\Definition::getEntityCollection PHP Method

getEntityCollection() public method

Get the custom entity collection
public getEntityCollection ( ) : SplStack | object
return SplStack | object
    public function getEntityCollection()
    {
        if (!is_object($this->configuration['entityCollection'])) {
            $entity = $this->configuration['entityCollection'];
            $this->configuration['entityCollection'] = new $entity();
        }
        return $this->configuration['entityCollection'];
    }