its a plain class just like with the ORM with an associated ClassMetadata instance.