TYPO3 v8 has reached its end-of-life March 31st, 2020 and is not maintained by the community anymore. Looking for a stable version? Use the version switch on the top left.

You can order Extended Long Term Support (ELTS) here: TYPO3 ELTS.

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.