Added foreign keys support in one-to-many only.