Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
1.6 Belongsto save() error
  • Why was https://github.com/fuel/orm/blame/1.6/master/classes/belongsto.php#L159 added?

    It is throwing the following:

    Fuel\Core\PhpErrorException [ Notice ]: Trying to get property of non-object
    PKGPATH/orm/classes/belongsto.php @ line 159

    $model_to is null after inspecting the error.

    This happens when I save an object but was working fine prior to version 1.6. For now, I've restored the save() function of version 1.5.3 and it's working fine.

  • HarroHarro
    Accepted Answer
    Has been fixed in 1.7/develop. We're expecting to release 1.6.1. soon, which will contain the fix for this.
  • Good job! Thanks, guys! Cheers.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion