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

Feature request: supporting call metadata #1

Open
middlebrain opened this issue Jun 29, 2016 · 3 comments
Open

Feature request: supporting call metadata #1

middlebrain opened this issue Jun 29, 2016 · 3 comments

Comments

@middlebrain
Copy link

See http://docs.sencha.com/extjs/6.0.2-classic/guides/backend_connectors/direct/specification.html#backend_connectors-_-direct-_-specification_-_call_metadata

Usually you have multiple tables in a database or multiple entities in doctrine. Currently, I have to write for each entity an extra ExtDirect controller with create, read, update and delete methods and @direct... annotations.

If you could support "call metadata", I could send the required tablename or entityname as metadata together with the Ext Direct call. On the server side I could write a single ExtDirect dispatcher and/or a generic CRUD service, resulting in lesser boilerplate code and code duplication.

Thanks.

@sgehrig
Copy link
Member

sgehrig commented Jun 29, 2016

@middlebrain Can you elaborate the usage of the metadata configuration and the concept of call metadata a little bit? To be honest, I haven't used that yet and I didn't even know that this exists.

@sgehrig
Copy link
Member

sgehrig commented Jun 29, 2016

@middlebrain OK, just read the documentation and it's somehow clear now. How would you'd like to use that feature on PHP side? How would you expect to define the metadata at your PHP method?

@middlebrain
Copy link
Author

middlebrain commented Jun 29, 2016

@sgehrig Don't know. I haven't used that too. I would need the metadata somehow additionally to the ExtDirect method parameters.

May be, the following kitchensink example (with server side example code) is helping you:

http://examples.sencha.com/extjs/6.0.2/examples/kitchensink/#direct-grid

And here a little bit additionally client side documentation:

http://docs.sencha.com/extjs/6.0.2-classic/Ext.data.proxy.Direct.html#cfg-metadata

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants