597 search results

// ... lines 1 - 15
class GenusController extends Controller
{
// ... lines 18 - 20
public function feedAction(Request $request)
{
$em = $this->getDoctrine()->getManager();
$id = $request->query->get('id');
$genus = $em->getRepository('AppBundle:Genus')->find($id);
$menu = ['shrimp', 'clams', 'lobsters', 'dolphin'];
$meal = $menu[random_int(0, 3)];
$this->addFlash('info', $genus->feed([$meal]));
return $this->redirectToRoute('easyadmin', [
// ... lines 33 - 35
]);
}
// ... lines 38 - 167
}
See Code Block in Script
…single React app is a bit of a downer. It means we either need to ship with two admins, one for our normal admin stuff (using custom code, or Easy Admin, or whatever) and then one for the CMS part. Yes, it can be extended…
Joris-Mak
Joris-Mak
Read Full Comment
…with css :-D ``` form[name=filters] .filter-content .form-widget-compound > div > div:first-child { display: none; } ``` I really really recommend to avoid this easy-admin-bundle and use api-platform to implement crud-action and build the UI's with Vue or React.
…ROLE_MODERATOR')->setController(QuestionPendingApprovalCrudController::class) portion of the code. Of course that makes those sublinks unfunctional. I tried the code downloaded from symfonicasts site with the same result. My code is here https://github.com/petre-symfony/easy-admin-symfonycasts/archive/refs/heads/master.zip
Diaconescu
Diaconescu
Read Full Comment
…relation to a Department entity, this gets rendered as an HTML select element in the embedded form. Can Easy Admin handle making this an Association field (so that I could use the autocomplete feature)? SymfonyCasts makes my job so much easier. Thanks again to you…
…I have Category and Subcategory entities. Now on the product creation page, I need to select category and subcategory. When I select a category then I want to show the subcategories which belong to the selected category. How can I do that in easy admin?
Debasish N.
Debasish N.
Read Full Comment
…Take a look at this link: https://symfonycasts.com/courses?status=upcoming&sort=popular#all - this will list upcoming tutorials, but nothing much there yet except the EastAdmin that you're right should be next, and it should happen very soon already ;) Thank you for your patience…
…use is an event: 1) Add an event listener (https://symfonycasts.com/screencast/easyadminbundle/event-hooks) on an event called EasyAdminEvents::POST_LIST_QUERY_BUILDER (which is the string ` easy_admin.post_list_query_builder`). 2) Your listener function will be passed a `GenericEvent` object…
weaverryan
weaverryan
Read Full Comment
…on insert telling me that user_id is null in the values list. How can I accomplish this? easy_admin.yml config for my UserAccount entity: ` new:
 title: 'Add %%entity_label%%'
 fields:
 - { property: userid, label: 'User Id', type_options: { disabled: true } }
…
… I've tried the following config but I continue to get a SQL because the User entity manager and the invoices table doesn't exist there: my easy_admin.yaml ` entities: # List the entity class name you want to manage InvoiceHeader: class: App\Entity\InvoiceHeader…
…assure you), I had a thought what if I had a base entity that implemented a UpdatedByUser trait for all the entities, then I a global event within easy admin to update this field when ever an admin user updates a table. Pretty cool, well…
…talk about all the different options for overriding templates: https://symfony.com/doc/current/bundles/EasyAdminBundle/book/list-search-show-configuration.html#selecting-the-template-to-render. One of them is to create this easy_admin directory: the bundle is programmed to look there. Cheers!
weaverryan
weaverryan
Read Full Comment
…Roberto, Hm, it's weird. Are you sure it's directly related to EasyAdminBundle? Please, make sure you don't call "$picture->setShop('some-string');" manually somewhere in your code. Also, could you show us your easy_admin configuration for Shop and Picture entities? Cheers!
…of the Sonata. It tries to cover too many things, simply stating. On the other hand, I don't find Sonata Admin basics actually tougher than Easy Admin one's, maybe bit more config is needed, but everything is pretty logical there, except you configure…
…! ./bin/console:15 { !! › !! › require_once dirname(__DIR__).'/vendor/autoload_runtime.php'; !! › !! arguments: { !! "/Users/k.shvalbe/Documents/Code/php/easyadmin-cast/vendor/autoload_runtime.php" !! } !! } !! } !! } !! 2025-09-01T08:17:09+00:00 [critical] Uncaught Error: Class "Pierstoval\SmokeTesting\SmokeTestingBundle" not found !! Script @auto-scripts was called…
Kostiantyn
Kostiantyn
Read Full Comment
…doing so that we can (soon) publish some tools or docs with the BEST repeatable pattern for modals. Anyway, thanks for posting this - pretty inspiring to to hear about this setup in EasyAdmin already today. If the existing JS could be converted into Stimulus controllers…
weaverryan
weaverryan
Read Full Comment
…inside the overridden method. I think that will work, but I'm not entirely sure! I hope this helps - if you try it, let me know one way or another if it works. I haven't tried the dynamic forms library with EasyAdmin yet. Cheers!
weaverryan
weaverryan
Read Full Comment
…though it's minor, I'd consider that a small bug in EasyAdmin. 2) The error is terrible :). This is, again, I think a bit of a bug in EasyAdmin. You can see this error for 2 possible reasons: (A) you forgot to put a…
weaverryan
weaverryan
Read Full Comment
… } } ``` We now query for entity objects. THEN we process those through the `EntityFactory` in the same way that EasyAdmin does when rendering the index page. This allows us to reuse all of its normal logic for getting the value of a field. The `export()` controller…
weaverryan
weaverryan
Read Full Comment
…your CourseParticipant. Call `parent::persistEntity($entityManager, $entityInstance)` so that it can finish saving. There is a decent chance that I forgot a detail - but let me know! This is a very cool use-case for EasyAdmin - I'd love to know if it works. Cheers!
weaverryan
weaverryan
Read Full Comment