-
Notifications
You must be signed in to change notification settings - Fork 57
About the DataHydrator filter_unresolved = true no items display #168
Comments
Hi, it's because Here, if |
Thank you for your reply. But I use ODM driver, after I trace previous related issues, Need to set the Identifier ? sorry I'm just a novice of symfony, not well understand. |
I'm not sure to understand what do you say. Yes, you have to persist your entities (in ORM or ODM) before pushing them into timeline as component. |
Hi Stephpy, I still in a error. T.T Now, I create a User class as the component, when filter_unresolved = true, it can show someone timeline with no spread, but when I add-on the spread service, if the timeline include another user action get below error. if no enable data_hydrator can be ok. I have not idea, how to solve it. I 'm trying to understand the DataHydrator logic. ContextErrorException: Notice: Array to string conversion in |
You entity has a composite key ? It seems error come from: https://github.com/stephpy/timeline-bundle/blob/master/Filter/DataHydrator/Locator/DoctrineODM.php#L62 which give |
No entity as |
If you dump |
Array ( [0] => id ) |
Try to add |
That error has removed, Thank you so much! |
I'll make a patch as soon as possible. |
hm.... I find something out of my expectation. |
It is explained in documentation, cannot be more explicit. |
DataHydrator filter_unresolved = true not work in ODM, that's why I ask above question. By the way, I really thank you for your reply. I remove a directComplement which referring in a timeline, when I pull the timeline get the error show as: The "MongoDBODMProxies__CG__\Acme\StoreBundle\Document\Component" document with identifier "547450f6d03b7c4304b7ad7d" could not be found. |
I don't use ODM, did you find something which could fix this usecase ? |
fix enable DataHydrator bug stephpy#168
Hi Stephpy
I'm not sure that problem is my misunderstand or not
my problem
create
$actionManager = $this->get('spy_timeline.action_manager');
$subject = $actionManager->findOrCreateComponent('a\model', 'chucknorris');
$action = $actionManager->create($subject, 'control', array('directComplement' => 'the world'));
$actionManager->updateAction($action);
get timeline
$actionManager = $this->get('spy_timeline.action_manager');
$timelineManager = $this->get('spy_timeline.timeline_manager');
$subject = $actionManager->findOrCreateComponent('a\model', 'chucknorris');
$timeline = $timelineManager->getTimeline($subject);
if filter_unresolved = false, get the related items
{"coll":{"items":[..........],"last_page":1,"page":1,"nb_results":1}}
if filter_unresolved = true, get nothing, i don't know why it filter out self action.
{"coll":{"items":[],"last_page":1,"page":1,"nb_results":1}}
regards
Oscar
The text was updated successfully, but these errors were encountered: