Fix for Issue #57

Fix for https://github.com/guilhermeblanco/zendframework1-doctrine2/issues/57