Bug #4325
Call to a member function findAll() on a non-object
Status: | Resolved | Start date: | 2009-08-26 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Karsten Dambekalns | % Done: | 0% |
|
Category: | Content / Instructions | |||
Target version: | 1.0.0 alpha 4 |
Description
Using the example given in Getting Started guide and creating a Blog model and Blog Repository and changing the Blog controller
The line of code $blogs = $this->blogRepository->findAll();
in the BlogController class is the problem. $this->blogRepository isn't an object. the framework should have injected the blogRepository object, but it didn't
Call to a member function findAll() on a non-object in C:\wamp\www\FLOW3Tutorial\Packages\Application\Blog\Classes\Controller\BlogController.php on line 46
Related issues
History
#1 Updated by Karsten Dambekalns almost 6 years ago
Have you tried emptying the cache? Sounds more like cached reflection data causing this - because property injection like this works for me.
#2 Updated by Robert Lemke almost 6 years ago
- Target version changed from 1.0.0 alpha 3 to 1.0.0 alpha 4
#3 Updated by Karsten Dambekalns almost 6 years ago
- Status changed from New to Needs Feedback
- Assigned To set to Karsten Dambekalns
#4 Updated by Karsten Dambekalns almost 6 years ago
- Category set to Content / Instructions
#5 Updated by ziyad saeed almost 6 years ago
my FLOW3_CONTEXT is set to Development, which should clear the cache.
However, whats the manual way of clearing the cache?
#6 Updated by Karsten Dambekalns almost 6 years ago
ziyad saeed wrote:
However, whats the manual way of clearing the cache?
Remove Data\Temporary\*
#7 Updated by ziyad saeed almost 6 years ago
Ok its working now
So the problem is flow3 not clearing the cache in development mode
#8 Updated by Karsten Dambekalns almost 6 years ago
- Status changed from Needs Feedback to Resolved
Thanks for your feedback!
The tutorial has been updated in SVN and will be updated on the website as soon as possible.