DiscoveredReflection: removed reference from getHasManyReference() and getBelongsToReference() [Closes #921]
Database: throws exception from wrong namespace #681
Merge pull request #934 from patriksima/database

Database: throws exception from wrong namespace #681
merge theirs