Fixed a small inconsistency in a query.

We were retrieving the schema from the constants,
but the class already has an attribute with it.
Open N:N entities' forms from the other side.

Now the entities' forms can be opened from the
opposite end of N:N relationships.