602 search results

…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
…almost always has some bugs and does not work in new versions of Symfony. The EasyAdmin bundle is too crowded with functions for simple display of data in a DataGrid with elementary possibilities that these controls should offer (pagination, sorting and filtering and nothing more ..…
Влада Петковић
Влада Петковић
Read Full Comment
…you may not see the usual information about the existing file. That's because EasyAdmin's form type uses a "model transformer" that seems to assume the file is stored locally. This is pretty fuzzy information - sorry about that - but if you want to try…
weaverryan
weaverryan
Read Full Comment
…would *really* want to do here is add a listener to kernel.request with this logic: ``` public function onKernelRequest(RequestEvent $event) { $request = $event->getRequest(); // if on the homepage if ($request->getPathInfo() === '/') { $event->setResponse(new RedirectResponse($this->router->generate('easyadmin')); } } ``` Does that makes sense…
weaverryan
weaverryan
Read Full Comment
…BALANCE] ROLE_CADET_SQUAD: [ROLE_STAFF, ROLE_LIST_ECTN, ROLE_SHOW_ECTN] ROLE_SQUAD: [ROLE_CADET_SQUAD, ROLE_ECTN_SQUAD] ROLE_CHIEF_OF_SQUAD: ROLE_SQUAD I have the same issue with easyadmin. I updated the config file but it does not refresh in prod...
Wilfried D.
Wilfried D.
Read Full Comment
…admin, front , member space)... How to well organize my project, how for example an admin can manage all the adverts via admin space (not easyAdmin), how a member can manage only his own adverts via his private space. How we can create these all spaces ..…
…C:\Nicolas\Symfony\Easyadmin\Easy1\vendor\knplabs\knp-markdown-bundle\Helper\MarkdownHelper.php on line 53 !! PHP Fatal error: Declaration of Knp\Bundle\MarkdownBundle\Helper\MarkdownHelper::getCharset() must be compatible with Symfony\Component\Templating\Helper\HelperInterface::getCharset(): string in C:\Nicolas\Symfony\Easyadmin\Easy1\vendor…
Nicolas-M
Nicolas-M
Read Full Comment
…exception: An exception occurred while executing 'DELETE FROM genus WHERE id = ?' with params [10]: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`easy_admin_tutorial`.`genus_note`, CONSTRAINT `FK_6478FCEC85C4074C` FOREIGN KEY (`genus_id`)…
Mailbox Spain Mail forwarding
Mailbox Spain Mail forwarding
Read Full Comment
// ... lines 1 - 2
{% block content_footer %}
Made with 🤍 by the guys and gals at SymfonyCasts
{% endblock %}
See Code Block in Script
// ... lines 1 - 2
namespace AppBundle\Event;
// ... lines 4 - 5
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
// ... lines 7 - 8
class EasyAdminSubscriber implements EventSubscriberInterface
{
// ... lines 11 - 21
}
See Code Block in Script
// ... lines 1 - 8
class EasyAdminSubscriber implements EventSubscriberInterface
{
public static function getSubscribedEvents()
{
// ... lines 13 - 15
}
// ... lines 17 - 21
}
See Code Block in Script
// ... lines 1 - 4
use JavierEguiluz\Bundle\EasyAdminBundle\Event\EasyAdminEvents;
// ... lines 6 - 8
class EasyAdminSubscriber implements EventSubscriberInterface
{
public static function getSubscribedEvents()
{
return [
EasyAdminEvents::PRE_UPDATE => 'onPreUpdate',
];
}
// ... lines 17 - 21
}
See Code Block in Script
// ... lines 1 - 6
use Symfony\Component\EventDispatcher\GenericEvent;
class EasyAdminSubscriber implements EventSubscriberInterface
{
// ... lines 11 - 17
public function onPreUpdate(GenericEvent $event)
{
// ... line 20
}
}
See Code Block in Script
// ... lines 1 - 8
class EasyAdminSubscriber implements EventSubscriberInterface
{
// ... lines 11 - 17
public function onPreUpdate(GenericEvent $event)
{
dump($event);die;
}
}
See Code Block in Script
// ... lines 1 - 10
class EasyAdminSubscriber implements EventSubscriberInterface
{
// ... lines 13 - 26
public function onPreUpdate(GenericEvent $event)
{
$entity = $event->getSubject();
// ... lines 30 - 38
}
}
See Code Block in Script
// ... lines 1 - 5
use JavierEguiluz\Bundle\EasyAdminBundle\Event\EasyAdminEvents;
// ... lines 7 - 12
class EasyAdminSubscriber implements EventSubscriberInterface
{
// ... lines 15 - 23
public static function getSubscribedEvents()
{
return [
EasyAdminEvents::PRE_EDIT => 'onPreEdit',
// ... line 28
];
}
// ... lines 31 - 59
}
See Code Block in Script