I know both of these procedures lead to data retrieval but I want to know precise answer.
*This post is locked for comments
I know both of these procedures lead to data retrieval but I want to know precise answer.
*This post is locked for comments
If you write exactly the same code as in find() method, then the behavior will be the same. The purpose of find() is that you don't have to repeat it.
But the method do more than just the select. Namely it doesn't bother making any DB query if no value is provided and it has one or two extra parameters (_forUpdate and _concurrencyModel).
André Arnaud de Cal... 291,759 Super User 2024 Season 2
Martin Dráb 230,468 Most Valuable Professional
nmaenpaa 101,156