stephpy / timeline

Standalone library to make a timeline.
MIT License
89 stars 20 forks source link

Problem when trying to updateAction #41

Closed semiaLi closed 9 years ago

semiaLi commented 9 years ago

Hello, i have a problem in submitting my action. In fact, i have this error :

FatalErrorException: Error: Call to a member function setContext() on a non-object in C:\wamp\www\Rse\vendor\stephpy\timeline-bundle\Driver\Doctrine\AbstractTimelineManager.php line 51

we can read this $timeline ->setType($type) ->setAction($action) ->setContext($context) ->setSubject($subject) ; if I change the setting order example like this : $timeline ->setContext($context) ->setSubject($subject) ->setType($type) ->setAction($action) ; it work !! But us you know we can't change the method of imported vender.

Please i need your help.

stephpy commented 9 years ago

Hi,

setAction method return $this. It seems you overrided this method and forgot to return $this. No ?

semiaLi commented 9 years ago

Thank you , it works :+1: