Skip to content

Conversation

@rochamarcelo
Copy link
Contributor

Related to #55

@rochamarcelo
Copy link
Contributor Author

@dereuromark Could you test this. Now it should not cause errors when using annotation

@property \Cake\ORM\Association\BelongsTo<\App\Model\Table\UsersTable> $Users

$this->Notes->Users->findByNamed('John Doe')->id// Native method to return User

$this->Notes->Users->findByRole('admin')->all()->toArray()//Magic finder method (not native method)

@dereuromark
Copy link
Collaborator

Works great!

@rochamarcelo rochamarcelo merged commit c3e4fd7 into 4.next-cake5 Oct 15, 2025
6 checks passed
@dereuromark dereuromark deleted the feature/typed-association-find-by branch October 15, 2025 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants