LeadModel.php

Hi guys i found this problem when try to update to 2.6.0 any idea?

Code:
[2017-02-09 16:07:51] mautic.ERROR: SymfonyComponentDebugExceptionFatalThrowableError: Call to a member function getId() on null - in file /var/www/html/app/bundles/LeadBundle/Model/LeadModel.php - at line 489 [] []

@MarkLL can you give me some light here.

Thanks

Hi guys i found this problem when try to update to 2.6.0 any idea?

[2017-02-09 16:07:51] mautic.ERROR: SymfonyComponentDebugExceptionFatalThrowableError: Call to a member function getId() on null - in file /var/www/html/app/bundles/LeadBundle/Model/LeadModel.php - at line 489 [] []

@MarkLL can you give me some light here.

Thanks

Hi @ninjoan did this happen because you changed the stage for the contact?

@ line 489 it’s retrieved a Stage record. However it does not check if the stage actually exists (returned a valid value).

However this is not new code. There was lots of updates to the data structure, does php app/console doctrine:schema:update --dump-sql show anything?