This looks wrong. If you have relations with ORM you need to manually exclude them.