Added belongsTo relation to from client storage to sessions and corrected query in sessions (to avoid ambiguous id).
This relation is needed to make the command $this->Auth->getAuthenticate('OAuthServer.OAuth')->Server->getAccessToken()->getSession()->getClient() working which is described on http://oauth2.thephpleague.com/resource-server/securing-your-api/
Added belongsTo relation to from client storage to sessions and corrected query in sessions (to avoid ambiguous id). This relation is needed to make the command $this->Auth->getAuthenticate('OAuthServer.OAuth')->Server->getAccessToken()->getSession()->getClient() working which is described on http://oauth2.thephpleague.com/resource-server/securing-your-api/