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

Inspired by Hibernate Envers, is it compatible? #79

Closed
hoshsadiq opened this issue Sep 30, 2014 · 2 comments
Closed

Inspired by Hibernate Envers, is it compatible? #79

hoshsadiq opened this issue Sep 30, 2014 · 2 comments

Comments

@hoshsadiq
Copy link

So the readme says this is inspired by Hibernate Envers, does this mean it's also compatible with it? If I have a Hibernate based project with a Symfony2 project, will they work together?

@tolry
Copy link
Contributor

tolry commented Oct 9, 2014

What exactly do you mean by "compatible"? Having two applications using the same database, one hibernate, one doctrine and still being able to read and write to the EntityAudit? For this to work, EntityAutit's and Envers' database structure need to be completely the same. Since I didn' t create EntityAudit and haven't checked out Envers yet, I can not tell you that. You would probably have to setup an exemplary application of both types and give it a try.

But: in general, you don't want to have two applications to access the same database, but rather have a service layer in between. This way you can encapsulate your domain logic.

@hoshsadiq
Copy link
Author

I completely agree with your statement, but such is the project I work on, and it's a big code base so I cannot simply change things. But yes, my question was basically if I enable this and Hibernate Envers, will they work as required, i.e. if doctrine audit one of the entries, will I be able to access it using Hibernate and vice versa? Anyway, we've opted for triggers since it's the best way to do for now.

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