Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken controller generator #193

Open
innoflash opened this issue Jan 19, 2024 · 0 comments · May be fixed by #194
Open

Broken controller generator #193

innoflash opened this issue Jan 19, 2024 · 0 comments · May be fixed by #194
Labels
type: bug A problem or error in the project that needs to be fixed

Comments

@innoflash
Copy link

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 named District (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

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:
Screenshot 2024-01-19 at 20 15 57

@innoflash innoflash linked a pull request Jan 19, 2024 that will close this issue
6 tasks
@Mohammad-Alavi Mohammad-Alavi linked a pull request Jan 28, 2024 that will close this issue
6 tasks
@Mohammad-Alavi Mohammad-Alavi added the type: bug A problem or error in the project that needs to be fixed label Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A problem or error in the project that needs to be fixed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants