Commit Graph
5 Commits
Author SHA1 Message Date
Harsh Singh 48fb520cce fix: require Name on API camera model and encoder template add (#7970) 2026-11-23 23:04:48 -05:00
Jash 9b80e9c086 fix: API camera model manufacturer join, encoder template and role name uniqueness refs #6463 2026-11-16 17:37:08 +05:30
Jash dbc664a6f4 fix: pin the API manufacturer and model id on save, refuse duplicate names and answer a failed add with the validation errors refs #5918 2026-11-14 23:05:46 +05:30
Nic Boet c54899a8d4 fix: correct App::uses package path in CameraModel
App::uses('AppModel', 'CameraModel') tells CakePHP to look for AppModel
in a non-existent 'CameraModel' package. The correct second argument is
'Model', which points to app/Model/AppModel.php where the base class
actually lives.

This was likely a copy-paste error — every other model in the codebase
correctly uses App::uses('AppModel', 'Model'). The bug may go unnoticed
when another model loads AppModel first via CakePHP's autoloader, but
causes a fatal error if CameraModel is the first model resolved in a
request (e.g. hitting the camera models API endpoint directly).
2026-02-13 19:53:13 -06:00
Isaac Connor c66489fb30 rough in api support for Models and Manufacturers 2021-09-25 20:49:30 -04:00