CakePHP Authentication Plugin Identity Associations
问题 I'm using CakePHP 3.8 and migrating to the Authentication Plugin (https://book.cakephp.org/authentication/1.1/en/index.html). When calling $this->Authentication->getIdentity()->getOriginalData() in a controller, I'd like to access a couple of assocations of my User entity. At the moment, I'm doing this by implementing the following IdentityInterface method in my User entity: public function getOriginalData() { $table = TableRegistry::getTableLocator()->get($this->getSource()); $table-