Bug #34763
Occurence of proxied object
Status: | Resolved | Start date: | 2012-03-12 | |
---|---|---|---|---|
Priority: | Must have | Due date: | ||
Assigned To: | Adrian Föder | % Done: | 0% |
|
Category: | - | |||
Target version: | - |
Description
I just had the case that I came in contact with the proxied representation of my "parent" entity, so it wasn't \Acme\Blog\Domain\Model\Post
but TYPO3\FLOW3\Persistence\Doctrine\Proxies\AcmeBlogDomainModelPost
.
The chain was nothing more than
http://example.org/acme.blog/post/show?post[__identity]=abcd-12345-ehff
controlled by
public function showAction(\Acme\Blog\Domain\Model\Post $post) { $this->view->assign('post', $post); // get_class($post) is that proxy one, also in all subsequent occurences/usages }
Basically that lead to my CommentsViewHelper not working anymore, but I wonder if that might make trouble also in current, present implementations; in the Widget controller there is also just used get_class($object)
.
I just absolutely don't know in what cases a proxy occurs and in what it doesn't.
Maybe you can say if that might be a problem.
Related issues
Associated revisions
[BUGFIX] Catch occurence of object in proxied state
It may happen that a commentable object is in its
proxied state which breaks the functionality; this
patch makes use of the ReflectionService's class
name retrieval method.
Change-Id: I5ac21146bd9b6235bd3d64fce4d8b9b2239a39d0
Resolves: #34763
History
#1 Updated by Gerrit Code Review over 3 years ago
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9695
#2 Updated by Gerrit Code Review over 3 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9695
#3 Updated by Bastian Waidelich over 3 years ago
- Assigned To deleted (
Bastian Waidelich)
#4 Updated by Karsten Dambekalns about 3 years ago
- Assigned To set to Adrian Föder
With #34426 resolved that should be the way to get the class name…
#5 Updated by Adrian Föder almost 3 years ago
- Status changed from Needs Feedback to Resolved