ErrorException [ Fatal Error ]:
Method
Fuel\Core\Date::__toString() must not throw an exception, caught
Fuel\Core\PhpErrorException: A non well formed numeric value encountered
<br />
<b>Fatal error</b>: Method Fuel\Core\Date::__toString() must not throw an exception, caught Fuel\Core\PhpErrorException: A non well formed numeric value encountered in <b>C:\saas\api.payroll\fuel\packages\orm\classes\model.php</b> on line <b>0</b><br />
In orm/classes/model.php line 2167 - 2169 I added these:
echo gettype($val), ': ', $key, ' => ';
print_R($val);
echo PHP_EOL;
and the result:
object: start_time => Fuel\Core\Date Object
(
[timestamp:protected] => 05:00:00
[timezone:protected] => Europe/Berlin
)
caused by line 2167:
$val = (string) $val;
called from find() with options['related']. The related table has start_time with data type TIME. No $_properties defined in related table.
The error above does not occur if I define $_properties in related model.
FuelPHP version is 1.9
It looks like you're new here. If you want to get involved, click one of these buttons!