add Query.php
modify ObjectType.php

Signed-off-by: Alexandr <yakovlev@primepix.ru>