Fatal error: Call to a member function getId() on null [duplicate]

The problem is in this line:

$record_company = $form_group->getCompany(); // it returns null

You have to var_dump the $form_group variable and check content to be sure.

But as I can see, the form group doesn’t have a company.

Browse More Popular Posts

Leave a Comment