Skip to content

Tag: symfony

Prevent symfony serializer to certain attributes

I acknowledge of the existence of $normalizer->setIgnoredAttributes but I have the following problem. I have an entity Product with attributes ‘prices’ (related with another entity) and ‘complements’ (which is a self reference relation). When I get the a product I need the prices, b…

Set max_execution_time for specific controller in symfony2

Using ini_set(), I can expand the maximum execution time of a script. In Symfony2, I can add ini_set to web/app.php and web/app_dev.php to apply the increased execution time to all controllers. But in this case, I only want to expand the maximum execution time for one specific controller action in Symfony2. I…

How to override Show field in sonata admin

I want show the list of multiple attributes Name => value in a table overriding single field of only for PortsAdmin in ShowMapper Ports Entity mapped with PortsAttributes Entity. Relation of entity is OneToMany Ports with multiple attributes. Admin View (Edit Action) Show Action I want change attribute vie…