ariddlestone / ariddlestone/cakephp2-ide-helper
Add models to controllers
- Dominant language
- No language data
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
We should add models to controllers using `@property` annotations.
* If `$uses` is an array, we should add all the models listed, and those in the `AppController` (and the plugin's `AppController` if appropriate)
* If `$uses` is false, we should not add any models
* If `$uses` is missing, we should add only the models in the `AppController` (and the plugin's `AppController` if appropriate)
See https://book.cakephp.org/2/en/controllers.html#Controller::$uses.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the controller handling and annotation logic, using the CakePHP Controller::$uses documentation as the behavioral reference. Trace how controllers, AppController, and plugin AppController models are discovered, then verify the three cases: an array includes all listed models, false includes none, and a missing value inherits only the applicable AppController models.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100