SQL and argument review.
Revert "Add temporary fix for DoctrineBundle"

This reverts commit 237fb04ebf95fa678df098e9f119335b53aa130b.

Rreason: fixed upstream.
fixed incorrect entity
Merge pull request #1346 from drak/revertservice

Revert "Add temporary fix for DoctrineBundle"
query and parameter view
Remove old deprecated code.
fixed missing query execution
sql and argument review
Prevent compiler passes from being processed in non ACTIVE state.
Merge branch 'compilerpass' into 1.3
correct Version class lookup for NS module types
use provided method for fetching Version class instance instead.
correct docblock typehint
correct variable scope for inheritance
SQL and argument review.
fixed incorrect entity
query and parameter view
fixed missing query execution
sql and argument review
sql and argument review