Skip to content
Advertisement

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, but when listing the complements, I don’t need the prices in the complement product, is there any

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’d rather not give other actions the possibility to

Semantical Error: Class MailileoBundleEntityMatch has no field or association named getMailid

I went through all similar issues but nothing appears to solve my problem. I’ve put a simple query in my MatchRepository but it throws a semantic error. I’ve double(triple) checked my entity and everything looks fine. It even works fine when I pull all Matches via findAll() and then run a $match->getMailid() The problem appears only in the MatchRepository file.

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 view same as edit Action. Answer You can create a custom template

Symfony framework install 406 Not Acceptable Error w/CPanel & WHM

So I am trying to get Symfony working on my server by following these install instructions. http://symfony.com/doc/current/book/installation.html#book-installation-permissions I got to the part where I ran this command in console in the directory where I wanted the framework to be installed. symfony new my_project_name I then followed these instructions to set my web root directory to /web as I believe I’m

Advertisement