This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
easy_admin: | |
entities: | |
Purchase: | |
class: App\Entity\Purchase | |
controller: App\Controller\Admin\PurchaseController | |
disabled_actions: ['delete'] | |
list: | |
actions: [ { name: 'show', icon: 'shopping-basket' } ] | |
fields: ['guid', 'buyer', 'deliveryDate', 'deliveryHour', 'billingAddress', 'purchasedItems', 'total'] | |
form: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Form; | |
use App\Entity\StreetAddress; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\Extension\Core\Type\CountryType; | |
use Symfony\Component\Form\Extension\Core\Type\TextType; | |
use Symfony\Component\Form\FormBuilderInterface; | |
use Symfony\Component\OptionsResolver\OptionsResolver; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
easy_admin: | |
entities: | |
Purchase: | |
class: App\Entity\Purchase | |
controller: App\Controller\Admin\PurchaseController | |
disabled_actions: ['delete'] | |
list: | |
actions: [ { name: 'show', icon: 'shopping-basket' } ] | |
fields: ['guid', 'buyer', 'deliveryDate', 'deliveryHour', 'billingAddress', 'purchasedItems', 'total'] | |
form: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* A lot of stuff is omitted so that we can focus on the point of the article. | |
* The whole working project can be seen here: https://github.com/shonezlo/easy-admin-demo-complex-forms | |
*/ | |
namespace App\Entity; | |
use Doctrine\Common\Collections\ArrayCollection; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Acme\DemoBundle\Repository; | |
use Acme\DemoBundle\Dependency; | |
use Doctrine\ORM\EntityRepository; | |
/** | |
* Get this repository directly from the container: it will set the $dependency attribute. | |
* If you get it using Doctrine's "getRepository()", don't forget to call setDependency(). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* This can be used to merge two animated gifs into one. Both GIFs should | |
* have the same size and frame rates. ImageMagick is needed for this to work | |
* | |
* Author: Nenad Mitic [email protected] | |
* | |
*/ |