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

Table contexts #23

Open
gabteles opened this issue Dec 10, 2015 · 0 comments
Open

Table contexts #23

gabteles opened this issue Dec 10, 2015 · 0 comments
Milestone

Comments

@gabteles
Copy link
Collaborator

Should be possible to set which context we are configuring when registering the table. The solution is to specify the current context by using Table#setContext method.

$totalFlex->registerTable('entity')
    ->setContext(TotalFlex::CtxC)
        // Adds all fields of the Create context
    ->setContext(TotalFlex::CtxR)
        // Adds all fields of the Read context
    ->setContext(TotalFlex::CtxU)
       // Adds all fields of the Update context
    ;
@gabteles gabteles added this to the 1.0.0 milestone Dec 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant