Closed craigh closed 11 years ago
@drak - I'm wondering if this is possibly a recent change in the core or in Doctrine. This occurs from the ajax controller updatepostAction()
method. which hasn't changed recently. It seems to be triggered in the persist method and I'm pretty sure Dizkus is attempting to persist an entity. Ajax is a bear to debug...
There are no changes I can think of.
You have a relation persist cascading problem. If fails in \Doctrine\ORM\UnitOfWork#cascadePersist
with $entity
= ForumUserEntity
when trying to get the $relatedEntities
for the $assoc['fieldName'] = 'user'
, $relatedEntities
is "2" but should be an object. Don't ask me why..
@cmfcmf how did you learn that? I cannot figure out how to debug this.
I'm using PhpStorm
+ XDebug
. Once you have configured it, it's quite easy to do, just as normal functions.
cool. I'm using storm as well. I will need you to show me how to configure sometime. I'll be back online in 4 or 5 hours if you are around. I'm using MAMP so I am not sure if Xdebug is installed or not though...
thanks @drak, but that is MAMP Pro. which I do not have.
It's cheap :dollar:
oh, you're buying?
@cmfcmf - ok, I have xdebug installed (thanks @drak) and am ready to learn how to use it with phpStorm...