So back on track :)
Current master branch leads to a fatal error immediately after the login:
Fatal error: Call to a member function setQuery() on a non-object in /vagrant/src/App/Projects/TrackerProject.php on line 240
After 2 hours of debugging I managed to find the problem and it is very interesting. Our User class takes DatabaseDriver object as a dependency. But this object is getting destructed during the Application close (this happens when the Application redirects a user). As a result the $database property of the User object in the session is set to a null and this leads to a fatal error.
How we could prevent this? May be we should initialize the $database property every time we request a User object from the session here?
I'd say commit it if it works for you - it doesn't look that ugly
I can confirm the bug.
I also confirm that i have no better idea how to fix it. It wasn't present when I submitted the PR ( I swear :P )
| Status | New | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2013-12-25 12:48:37 |
Guys I need your thoughts here. I just pushed the fix, but does not it look like ugly one? What do you think?