Fixed a bug with custom "from" side of has-one relation.