doctrine / common

Doctrine Common
https://www.doctrine-project.org/projects/common.html
MIT License
5.78k stars 294 forks source link

feat(ProxyGenerator): update regex pattern to match simple id getters with custom id type #1001

Open simPod opened 1 year ago

simPod commented 1 year ago

This allows returning VO from id getter while it does not trigger entity lazy load.

Supports return $this->id|VO::someconstructor($this->id)|new VO($this->id)