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

[Feature] Hook up typeorm implementation #2

Closed
2 tasks done
jmaicaaan opened this issue Dec 11, 2017 · 2 comments
Closed
2 tasks done

[Feature] Hook up typeorm implementation #2

jmaicaaan opened this issue Dec 11, 2017 · 2 comments

Comments

@jmaicaaan
Copy link
Owner

jmaicaaan commented Dec 11, 2017

Let's make use of the ActiveRecord implementation, you can find an example at their github

  • Unit Test

  • Add example with the Account entity

@jmaicaaan jmaicaaan changed the title Hook up typeorm implementation [Feature] Hook up typeorm implementation Dec 11, 2017
@jmaicaaan
Copy link
Owner Author

jmaicaaan commented Dec 17, 2017

@ciiidi I didn't make use of the ActiveRecord pattern because I feel like an entity should not do transactions or hold connections to the database. I've created a service which extends the Repository class to have the methods to connect with the database.

Added a User entity with the basic operations. Here is my WIP commit

@jmaicaaan
Copy link
Owner Author

Can now be close by adf406e

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

No branches or pull requests

1 participant