fix phpdoc for entities