fixed missing error handling for cascade, fixed typos in the yaml driver, fixed logic for building the bitmask
Merge pull request #58 from doctrine/cascade_fixes

fixed several issues in cascade support