Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Association documentation on Readme might be out of date #15

Open
brucepom opened this issue Apr 1, 2013 · 2 comments
Open

Association documentation on Readme might be out of date #15

brucepom opened this issue Apr 1, 2013 · 2 comments

Comments

@brucepom
Copy link

brucepom commented Apr 1, 2013

Great work on this project by the way.

In the main readme the association examples are:

hasMany :articles, :class => 'Article', :inverse => :author
belongsTo :author, :class => 'Author', :inverse => :articles

But it looks like the format of these has changed and is currently:

hasMany :ingredients, :destinationEntity => Ingredient.entityDescription, :inverse => :recipe
hasOne :recipe, :destinationEntity => Recipe.entityDescription, :inverse => :ingredients

Thanks again for the great project!

@alloy
Copy link
Owner

alloy commented Apr 2, 2013

Hey @brucepom, mainly the README was meant as how the code should eventually look like. I.e. the entity resolving should happen automagically when the stack is used for the first time (actually just before it).

I’m currently not doing anything with this, so please feel free to pick-up where I left off :)

@brucepom
Copy link
Author

brucepom commented Apr 2, 2013

Ok I see what you mean. I understand that it's unfinished but as the project stands already it's really useful. I've tried out quite a few orm-type projects for persistence in Rubymotion and so far this one works best for my needs. I'll fork it and try to contribute what I can with my meagre skills and hopefully someone with better skills than me can finish this off properly as I think it's a great project.

Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants