Get Blog from the Repository

Lets take a look into the BlogRepository and travel into the inner core of our little action island.

namespace MyVendor\BlogExample\Domain\Repository;

class BlogRepository extends \TYPO3\CMS\Extbase\Persistence\Repository


The code is not shortened. The BlogRepository simply does not have any own code since all methods which are used very often are already implemented in the parent class \TYPO3\CMS\Extbase\Persistence\Repository. These functions are also available in all child classes. We call the method findAll(), to retrieve all blog objects.


Although you don’t need to implement your own logic extbase expects an existing class.