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
The controller generator is setting all new controllers to the containeraName as the resource for the controller.
Steps To Reproduce
Say you have a container named Locations and you have a model named District (which is not the default model created on creating the container)
You run the create controller command.
The generated controller is pointing to the Locations model (container name) yet it is supposed to point to the desired model. Its is doing so for the request, resourceName and transformer.
This is the out come:
The text was updated successfully, but these errors were encountered:
Apiato Core Version
8.7.x
PHP Version
8.2
Database Driver & Version
Postgres
Description
The controller generator is setting all new controllers to the
containeraName
as the resource for the controller.Steps To Reproduce
Say you have a container named
Locations
and you have a model namedDistrict
(which is not the default model created on creating the container)You run the create controller command.
![Screenshot 2024-01-19 at 20 12 46](https://private-user-images.githubusercontent.com/12772919/298162664-aaa2dbb9-6d70-4399-935f-b7aa61e7a20b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxMTE4NzgsIm5iZiI6MTcyNDExMTU3OCwicGF0aCI6Ii8xMjc3MjkxOS8yOTgxNjI2NjQtYWFhMmRiYjktNmQ3MC00Mzk5LTkzNWYtYjdhYTYxZTdhMjBiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE5VDIzNTI1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZiMmFjZWI3ZTJkNjAyZTM1YWNmNTEyZTQwZDZiYmFmZTgwYjQxMTRhN2ZjM2YwODIzYmNiNzRhYjM5ZjBlMjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.9CStxj8SXe3Hoqdoh-FcZypOJPUUJAH46h_zca354dk)
The generated controller is pointing to the
![Screenshot 2024-01-19 at 20 15 57](https://private-user-images.githubusercontent.com/12772919/298162908-22af2c36-fc2f-485a-b12d-2ee9b41736e1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxMTE4NzgsIm5iZiI6MTcyNDExMTU3OCwicGF0aCI6Ii8xMjc3MjkxOS8yOTgxNjI5MDgtMjJhZjJjMzYtZmMyZi00ODVhLWIxMmQtMmVlOWI0MTczNmUxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE5VDIzNTI1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU0NjVmZDk0Y2UwZWZlNTU3NjQ5MTUxMDg5YjA5MWU3NDcxZTc2OGFkZTAyMTZjOTA0MThmNDU3NjY0N2E2YWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.RM5wnruczItft2499tlDGi5y5ug21mseCNs3Wmf7NLw)
Locations
model (container name) yet it is supposed to point to the desired model. Its is doing so for therequest
,resourceName
andtransformer
.This is the out come:
The text was updated successfully, but these errors were encountered: