Trying to figure out for the last 2 hours why I am getting this exception and I have no ideas why I get it... It happens here where I want to save belongs_to relation:
It complains that it has a related object that is supposed to exist, buf when it does a find() using the objects' key, it can't find it.
So where does your $warehouse_location_from come from? Since is_new() reports false on it, and yet the primary key of the object does not exist in the database.
And the primary key's that load this exist in the DB. It happens with I 1523 and it exists... Even if I log it with Log::info($warehouse_location_from->name) it will log correctly but then fail with above message on this save()
INFO - 2016-05-24 06:01:59 --> 1523 SKL ARHIV REG/05/SUPPLIES
ERROR - 2016-05-24 06:01:59 --> Error - New relation set on Model_Goodstransferitem object wasn't found. in /Users/primozrome/Dropbox/www/dewesoftadmin/fuel/packages/orm/classes/belongsto.php on line 173