
properties are not being destinguished between repositories
Reported by brapse | July 27th, 2009 @ 03:09 PM | in 0.10.0
I'm trying to create a single model that has different properties in two repositories. It's my understanding that defining the properties in repository block should accomplish this. Provided in the example is a case in which properties defined in the 'production' repository are ignored and 'default' properties are listed even in a repository(:production) block.
I have reproduced the issue on 0.10.0 and 0.9.11.
Comments and changes to this ticket
-
Martin Gamsjaeger (snusnu) August 18th, 2009 @ 10:00 PM
- State changed from new to resolved
- Milestone set to 0.10.0
brapse,
Have a look at http://pastie.org/588043 for an example of how to define a model which has properties in multiple repositories. There are few things to note:
- properties declared in the
:default
repository are inherited by all the other repositories - the
:default
repository must have at least one key - this (at least currently) implies that you will need to have a key property that has the same name in all repositories
- you can however change the name of the underlying field in the storage engine, as shown in the example
Hope that helps! Marking this resolved. Oh, and this applies to current
next
branch
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »