Class Metadata: Throw a nice error message when the identifier field is not available, instead of letting the user confused with PHP's Undefined index and another fatal PHP error.
Merge pull request #62 from phaikawl/master

Throw an error when the identifier field is not available