src/ORM/LazyLoadEntityTrait.php
protected function _repository()
    {
        $source = $this->getSource();
        if ($source === null) {
            list(, $class) = namespaceSplit(get_class($this));
            $source = Inflector::pluralize($class);
        }

        return TableRegistry::getTableLocator()->get($source);
    }
protected function _repository()
    {
        $source = $this->getSource();
        if ($source === null) {
            list(, $class) = namespaceSplit(get_class($this));
            $source = Inflector::pluralize($class);
        }

        return TableRegistry::getTableLocator()->get($source);
    }
protected function _repository ( ) { $ source = $ this -> getSource ( ) ; if ( $ source === null ) { list ( , $ class ) = namespaceSplit ( get_class ( $ this ) ) ; $ source = Inflector :: pluralize ( $ class ) ; } return TableRegistry :: getTableLocator ( ) -> get ( $ source ) ; }
Gets the repository for this entity

@return Table
Gets the repository for this entity