toopay/CI-GasORM-Library — Issue #10: Limitation on multiple relations of the same type
Author: atomate
Created: 2011-12-09 02:19:50+00:00
State: open

Hi there, here is an issue I discovered while trying to setup an object with more than one 'has_one' relationship

```public $relations = array(
'belongs_to' => array('category' => array('foreign_id' => 'category_id')),
'has_one' => array('site' => array('foreign_id' => 'site_id')),
'has_one' => array('locale' => array('foreign_id' => 'locale_id')),
);```

Due to the nature of php arrays, keys seem to like to be unique.

hope this helps