Updated DoctrineObject to support context aware strategies.
CS fixes.
Fixed array usage for php 5.3
Merge pull request #260 from spiffyjr/pr/patch-2

Updated DoctrineObject to support context aware strategies.