Get Blog from the RepositoryΒΆ
Lets take a look into the BlogRepository and travel into the inner core of
our little action island.
<?php
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.
Note
Although you don't need to implement your own logic extbase expects an existing class.