Fix variable declaration

And also use `Doctrine` instead of `Doctrine_Core`.
Merge pull request #1 from j0k3r/patch-1

Fix variable declaration