Questions tagged [symfony-3.2]

This is the Symfony 3.2.x specific tag. Use it in addition to the symfony3 tag if your question is specific to Symfony 3.2.x — not just 3.x.

Symfony is a PHP full-stack web framework developed and maintained by Sensio Labs.

Information

This tag is specific for the 3.2 version of Symfony. See the tag for general Symfony 3.x questions.

The 3.2.0 version was released on the 30th November 2016.

326 questions
0
votes
1 answer

loading resource security.yml symfony3

I try to extend my file security.yml in app with my security.yml in my own bundle but I've this error : InvalidArgumentException in YamlFileLoader.php line 431: There is no extension able to load the configuration for…
J.Bon
  • 1
  • 2
0
votes
1 answer

Symfony3. Access to the protected on demand user content

I'm looking for some idea(-s) how can I solve such task in Symfony3 or generally in symfony. Let say, that I allow the user to create some content on the page (i.e post or article). The thing is that part of this content can be restricted on demand…
kondorek
  • 29
  • 1
  • 6
0
votes
1 answer

How to move Bundle/Resources folder to a subfolder in Symfony?

I'd like to structure a Symfony3 Bundle into submodules. For this I would like to move the Bundle/Resources folder (with views, config and public) along with the controller classes into a subfolder. Example with a DemoBundle and the Messages…
0
votes
1 answer

Symfony 3/Doctrine - populate table with some rows while creating table schema

I want to fill a database table as soon as it is created first time, may be with running the following command: php bin/console doctrine:schema:update --force --em=some_connection Basically, this will be a static table with some static data. I need…
im_tsm
  • 1,965
  • 17
  • 29
0
votes
1 answer

Displaying material icons in select button

I'm developing an application with symfony 3. I have a select button ( selectize) inwich i want to display some material icons. What i did : FormType: ->add('icon', ChoiceType::class, array( 'choices' => array( // …
walidtlili
  • 840
  • 2
  • 13
  • 36
0
votes
2 answers

Override show.html.twig in SonataClassificationBundle/CategoryAdmin

I'm trying to override show.html.twig in the context of SonataClassificationBundle/CategoryAdmin I've tried putting it in /app/Resources/SonataClassificationBundle/views/CategoryAdmin/show.html.twig but it doesn't work. I'm using Symfony 3.2.7.
Oriol Planas
  • 107
  • 9
0
votes
1 answer

Symfony api-platform won't attach to event listener

api-platform.com's event won't attach to my listener. I tried several combination from their event matrix but it still won't trigger. # services.yml user_access_listener: class: AppBundle\Event\Listener\UserAccessListener arguments: […
almar.io
  • 21
  • 3
0
votes
1 answer

UsernamePasswordToken NULL after one request

I created UnitTests for my Symfony app with the REST and OAuthBundle. To test the API behind the firewall, I create in my setUp method a UsernamePasswordToken by $token = new UsernamePasswordToken($user, null, 'default', array('ROLE_USER')); Now I…
mgluesenkamp
  • 529
  • 6
  • 19
0
votes
1 answer

symfony3 entity generator yml bug

I don't have a lot of experience with symfony or doctrine but I'm in a weird situation. I got a simple User and Post entity. The thing is that Users can post things when they are logged. The problem is that I wanted to link my table "post" and…
Kodoyosa
  • 61
  • 6
0
votes
1 answer

Symfony 3: in controller action, set a new request param then redirect

In a Symfony 3 controller action, I add a parameter to the request and then send it to another controller action via 307 redirect. /** * @Route("/first", name="my_first_action") */ public function firstAction(Request $request) { …
brietsparks
  • 4,776
  • 8
  • 35
  • 69
0
votes
1 answer

ObjectNormalizer overrides RelationshipNormalizer causing code to crash, why?

I am trying to add my own normalizer since I need to convert (denormalize) some raw values to it's related entities. This is what I have done: namespace MMI\IntegrationBundle\Serializer\Normalizer; use…
ReynierPM
  • 17,594
  • 53
  • 193
  • 363
0
votes
0 answers

Symfony 3.2 create query with 2 subquery's

In my Symfony 3.2 project, I want to show all themes which are used in table1 and table2 by user_id = 1. This is the MySQL-query which works perfect in PhpMyAdmin: SELECT DISTINCT themes.* FROM themes WHERE EXISTS (SELECT * FROM table1 …
Jasper Poppe
  • 481
  • 2
  • 7
  • 16
0
votes
1 answer

How to normalize a given property using callback or any other method in Symfony 3?

Let's say I have the following response coming from an API call: [ { "AgreementNumber": 20266, "StartDate": "2005-07-01T00:00:00", "EndDate": "2006-06-30T00:00:00", "AgreementTypeId": 1, "CfProgramLevelId": 2, "TamFlag":…
ReynierPM
  • 17,594
  • 53
  • 193
  • 363
0
votes
1 answer

Symfony3: unable to send form after adding new data dynamically

So I was using symfony for a while but there is problem that, each time I face it, I get very angry, seriously :). Let's assume I have an entity Client with OneToMany relation with entity Address, and let's say I have a form with two selects:…
SlimenTN
  • 3,383
  • 7
  • 31
  • 78
0
votes
0 answers

Symfony 3 Relation concept

i am new and some confused during create relation between entities (one to many) in symfony.i have make the relation in entity files but no any foreign key created . According to http://symfony.com/doc/current/doctrine/associations.html can i…