DateTime should be serialized as milliseconds from 1970-01-01T00:00:00
Cleanup phpdoc comments for orderby
Support deserializing reference entities