[TYPO3-mvc] ObjectStorage not initialized at frontend request
Claus Due
claus at wildside.dk
Wed Jun 22 10:13:00 CEST 2011
Hi Zalan,
Have you checked that all your attribute annotations are OK? This could be due to the ObjectStorage being set with a NULL value if you use it as a controller action argument.
I'm just guessing here but the symptoms fit with a NULL-value where ObjectStorage is expected.
--
Med venlig hilsen / Kind regards
Claus Due
Code Monkey
--
Wildside A/S
Katrinebjergvej 113, DK-8200 Århus N
tlf. 86 12 64 65
http://www.wildside.dk
On Jun 22, 2011, at 10:09 AM, Zalán Somogyváry wrote:
> Hi list,
>
> I've found some strange behaviour of extbase, when creating a model object in the frontend.
> Within an action an object is retrieved from a repository, the object is retrieved, but the associated objectStorage seems not to be initialized by the repo:
> I always get this error:
> Fatal error: Call to a member function attach() on a non-object in /Path-to-myobject/MyObject.php on line #.
> but the constructor of my object has:
> $this->variable = new Tx_Extbase_Persistence_ObjectStorage();
>
> Any suggestions? I've already debugged and debugged but can't find a reason for this...
>
> Best regards,
> Zalán Somogyváry
>
>
>
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
More information about the TYPO3-project-typo3v4mvc
mailing list