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

[Example] Add additional tab to built-in contact entity #89

Closed
wants to merge 1 commit into from

Conversation

niklasnatter
Copy link
Contributor

@niklasnatter niklasnatter commented Feb 12, 2021

What's in this PR?

This PR demonstrates how to add an additional tab to the the built-in contact entity. The example extends the contact entity to include two project-specific properties and adds an additional tab to the contact form view to manage the data.

Screenshot 2021-02-12 at 16 39 23

To apply the changes, the schema of the database needs to be updated by executing bin/console doctrine:schema:update --force.

@niklasnatter niklasnatter added the Example Example implementations label Feb 12, 2021
@niklasnatter niklasnatter force-pushed the example/extend-entity branch 2 times, most recently from 9654e99 to f97d207 Compare February 12, 2021 16:01
@niklasnatter niklasnatter changed the title [Example] Extend built-in entity with additional data [Example] Extend built-in contact entity with additional data Feb 12, 2021
@niklasnatter niklasnatter changed the title [Example] Extend built-in contact entity with additional data [Example] Add additional tab to built-in contact entity Feb 15, 2021

public function deleteAction(int $id): Response
{
return $this->contactController->deleteAction($id);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would forward the request so the requestStack is correctly called and a listener which does listen to DeleteAction route would be correctly called.

https://symfony.com/doc/current/controller/forwarding.html

@niklasnatter niklasnatter force-pushed the example/extend-entity branch 2 times, most recently from 78e2662 to 0abbd23 Compare February 15, 2021 12:11
@niklasnatter
Copy link
Contributor Author

Replaced by #91

@alexander-schranz alexander-schranz removed the Example Example implementations label Feb 19, 2024
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

Successfully merging this pull request may close these issues.

2 participants