[TYPO3-mvc] Using repositories in validators
Jonas Eberle
jonas.eberle at d-mind.de
Fri Jan 9 16:58:35 CET 2015
Hi Matthew,
Am 19.12.2014 um 17:40 schrieb Matthew Colton:
> it results in the following PHP error:
>
> Fatal error: Call to a member function
> amountOfReserverationsOfEventDate() on a non-object in
> /var/www/laks/hessen-szene.de/cms/typo3conf/ext/laks/Classes/Validation/Validator/EnoughTicketsAvailableValidator.php
> on line 69
That error is very common if you use @annotations. You need to clear the
system cache for @inject to work because code annotations are cached.
I do not see why @inject should not work in a Validator.
Regards,
Jonas
--
Neu: welcome.region-stuttgart.de
Neu: ladenbackofen.de
Neu: beltamor.de
--------------------------------
d-mind bei Facebook:
http://www.facebook.com/werbeagentur.internetagentur.stuttgart
--------------------------------
d-mind
Fuchs/Weiß/Strobel GbR
Mörikestraße 69
70199 Stuttgart
Tel.: +49 711 280481-1 (Durchwahl: -18)
Fax: +49 711 280481-3
Inhaber: Jens Fuchs, Michael Weiß, Jens Strobel
www.d-mind.de
More information about the TYPO3-project-typo3v4mvc
mailing list