schmittjoh/metadata — pull request #26 by chrismcmacken (2013-05-31 23:10:42+00:00)
Title: Avoid a race condition that can occur when writing cache files

file_put_contents() is used putClassMetadataInCache(), which does not write files atomically so I added a check here to make sure we get an appropriate class object before blindly calling methods on it. Alternatively you could use an atomic write command and avoid this issue entirely.