I used the doctrine to query the user:
$customer = $this->getDoctrine()->getRepository('DemoUserBundle:Customer')->find(1);
But I got the result:
Client {# 1441 ▼ + isInitialized : false -id: 1 -username: null -nickname: null -email: null -salt: null -password: null -roles: null -enabled: null -lastLogin: null -expired: null - expiredAt: null -created: null -modified: null -group: null -ceilphoneCode: null -avatar: null -tasks: null -application: null-companies: null -creators: null -images: null -company: null -store: Store {# 1440 ▶} -realName: null -sex: null -age: null -belongCompany: null -address: null -server: null -relationProducts: null -attributes: null -medias: null -logs: null ... 2 }
the result is not complete, where is the other data of this user? why isInitialized is false?
source
share