public function relationships() { return array('Powers' => Power::hasMany('id', 'heroid'), 'SecretIdentity' => SecretIdentity::belongsTo('identityid', 'id', true)); }