[TYPO3-dev] Include model of ext. A into ext. B
Michael Bakonyi
kontakt at mb-neuemedien.de
Fri May 23 14:39:02 CEST 2014
Am 23.05.14 13:59, schrieb Wolfgang Klinger:
>
> On 23 May 2014, at 13:38, Michael Bakonyi <kontakt at mb-neuemedien.de> wrote:
>> So now I extend the EditController and inject the mailinglist-repository but it seems like the injection doesn't work correclty as the error "Call to a member function findAll() on a non-object" appears. Is there anything else I have to know about?
>
> no, should work that way
>
> how does your MailinglistRepository class look like?
Like that:
...
namespace Civit\MailmanSynch\Domain\Repository;
...
class MailinglistRepository extends
\TYPO3\CMS\Extbase\Persistence\Repository {
public function findFromCustomStorageFolder(array $storageFolders){
$query = $this->createQuery();
$query->getQuerySettings()->setStoragePageIds($storageFolders);
return $query->execute();
}
}
Cheers,
M*
More information about the TYPO3-dev
mailing list