kohana/orm — pull request #52 by radsystems (2012-01-27 20:39:47+00:00)
Title: Fixes #4420 - ORM belongs_to relationship can be set to NULL

The foreign key in the belongs_to relationship is only set to the value's primary key if the value is an instance of ORM, otherwise the foreign key is set to NULL.