You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the present time you should use a magic string to load a table class: $articles = $this->getTableLocator()->fetchTable('Articles');.
It would be better to use a constant IMHO: $articles = $this->getTableLocator()->fetchTable(ArticlesTable::class); and to extract the alias from the class name inside fetchTable method.
In case when an alias does not follow the naming conventions it should be possible to set it by using the options parameter: $articles = $this->getTableLocator()->fetchTable(ArticlesTable::class, ['alias' => 'MyArticle']);