on the serial model, I have a belongs to relation:
'item' => array(
'key_from' => 'lot_id',
'model_to' => 'Model_Item',
'key_to' => 'lot_id'
)
In one of my functions on save the Model_Serial is touched and it triggers an ORM foreign keys check that throws an exception New relation set on Model_Serial object wasn't found. I looked at this code and it seems to always check the relations by primary key (find method) but in my case, the relation is not defined that way.