Skip to content

Commit

Permalink
bug #5943 Import fields used as example (simoheinonen)
Browse files Browse the repository at this point in the history
This PR was merged into the 4.x branch.

Discussion
----------

Import fields used as example

Used to be like this after uncommenting the example:

![image](https://github.com/EasyCorp/EasyAdminBundle/assets/3840367/c49ef1f2-1901-41a5-b217-c610dd4001a6)

Commits
-------

469f1f0 Import fields used as example
  • Loading branch information
javiereguiluz committed Oct 21, 2023
2 parents 61b3733 + 469f1f0 commit 85619dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Resources/skeleton/crud_controller.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ namespace <?= $namespace; ?>;

use <?= $entity_fqcn; ?>;
use EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractCrudController;
use EasyCorp\Bundle\EasyAdminBundle\Field\IdField;
use EasyCorp\Bundle\EasyAdminBundle\Field\TextEditorField;
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;

class <?= $class_name; ?> extends AbstractCrudController
{
Expand Down

0 comments on commit 85619dc

Please sign in to comment.