# LeadModel.php

**URL:** https://forum.mautic.org/t/leadmodel-php/7455
**Category:** Product Support
**Created:** [February 9, 2017, 8:51pm UTC](https://forum.mautic.org/t/leadmodel-php/7455 "2017-02-09T20:51:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ninjoan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ninjoan/32/1005_2.png) [@ninjoan](https://forum.mautic.org/u/ninjoan)
#### Post date: [February 9, 2017, 8:51pm UTC](https://forum.mautic.org/t/leadmodel-php/7455/1 "2017-02-09T20:51:01Z")

</div>

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

---

<div class="post-metadata">

### Author: ![ninjoan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ninjoan/32/1005_2.png) [@ninjoan](https://forum.mautic.org/u/ninjoan)
#### Post date: [February 9, 2017, 8:51pm UTC](https://forum.mautic.org/t/leadmodel-php/7455/2 "2017-02-09T20:51:01Z")

</div>

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

```auto
[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

---

<div class="post-metadata">

### Author: ![MarkLL](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@MarkLL](https://forum.mautic.org/u/MarkLL)
#### Post date: [February 9, 2017, 10:01pm UTC](https://forum.mautic.org/t/leadmodel-php/7455/3 "2017-02-09T22:01:25Z")

</div>

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?
