doctrine generate functions of entity