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

How to join 3 tables in Symfony 3

Here is my Formation class: class Formation { /** * @var int * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** * @var string * * @ORM\Column(name="nom", type="string",…
0
votes
1 answer

Entity subscriber not called when entity is created within another entity subscriber

I have the following szenario: A user creates a Scan The ScanSubscriber listens to prePersist, preUpdate and onFlush In onFlush some rare cases may happen that require the CampaignParticipation, that is related to the given Scan, to complete. I…
Thomas Kekeisen
  • 4,355
  • 4
  • 35
  • 54
0
votes
2 answers

Symfony 3 advice : retrieve data from another entity

I am new to Symfony and I was wondering how I would achieve this : I'm retrieving data from one entity, and one field is in JSON. It references data from other entities that I would like to convert into objects. Here is an example : // JSON…
Cryborg
  • 303
  • 3
  • 14
0
votes
1 answer

EasyAdmin plus DoctrineBehavior Translatable

Trying to find solution how to make work EasyAdmin bundle with DoctrineBehavoir Translatable together. Can somebody help me? May be have an example?
Mykyta Popov
  • 57
  • 1
  • 8
0
votes
2 answers

After successful authentication token is not authenticated

I'm new in Symfony 3.2. I need to implement form authentication. User fetches from database. After post to /login onAuthenticationSuccess event fires, but token is still unauthenticate: What i am doing wrong? security.yml security: encoders: …
Dmitriy Korobkov
  • 867
  • 1
  • 11
  • 25
0
votes
1 answer

Serializing data using Unirest in symfony3

I'd like to search my persons by query. Everything is alright with my server side of work. I verified in postman that link/persons/query is working well of course when I add ?name=aaa it works well. But the problem is in my symfony code, when I…
bsm
  • 81
  • 2
  • 9
0
votes
1 answer

Environment variables not found in console and composer

I set environment variables and removed parameters.yml file according to new recommended configuration. In my local environment (WAMP), I set these in .htaccess file in the root of my project. The app is working, but Symfony console and composer…
Kristen Joseph-Delaffon
  • 1,261
  • 2
  • 17
  • 37
0
votes
1 answer

Symfony FOSUserBundle Remeber me doesn't work

I'm using FOSUserBundle with email as username. Tryin' to use the remember_me functionality but it's not working. I've read this Symfony2: "Remember me" tries to authenticate by username instad of email It's quite an old article and the username…
Jack Skeletron
  • 1,351
  • 13
  • 37
0
votes
1 answer

Symfony row DB security based on field value

I have a database that contains hundreds of thousands of records. For commercial reasons only users who work on specific projects can view certain records, we identify these records via a project_code field. I think there is a facility in doctrine…
PrestonDocks
  • 4,851
  • 9
  • 47
  • 82
0
votes
1 answer

Symfony-3.2 "Cannot access private property..."

I have a problem. I try to get values from DB and add their to array. Then I want to use this array for render in the template by means of Twig {{ content.language.text_logo }}. How can I change properties of objects in array to "public"? This is…
Serj Bliznyuk
  • 21
  • 1
  • 2
0
votes
2 answers

Can I create a more global instance of EntityManager in order to keep my code DRY?

From the examples I'm finding in the Symfony docs, it looks like the typical thing to do when needing to save data is something like in the controller class: public function createAction(){ $product = new Product(); $product->setName('Amy…
Amy Lashley
  • 416
  • 4
  • 11
0
votes
2 answers

Symfony3 - Doctrine associated object not populating

This is a basic problem where I have an associated object that I want to reference, but it's not being instantiated. Not sure what I'm doing wrong. I have objects MARKET and and VENDOR associated one to many. Markets have many vendors, vendors…
Geoff Maddock
  • 1,700
  • 3
  • 26
  • 47
0
votes
2 answers

Delete a 3-entity (one-to-many-to-one) association with Symfony 3 using Doctrine

This is my very first question! I have two entities that I want to relate: Product and Category. A product may have multiple categories and a category may correspond to many products. I've decided to implement this relationship as a 3-class…
0
votes
4 answers

googleMap is not displayed

I'm developing an application with Symfony 3. I have a div in which I'm showing a Google map. I'm hiding the page with then I did this: $(document).ready(function () { …
walidtlili
  • 840
  • 2
  • 13
  • 36
0
votes
1 answer

fetching from ManyToMany table

I'm trying to fetch results from mysql table I'm using symfony3 and of course doctrine 2 I have 2 entity Client.php
Wajdi Makhlouf
  • 93
  • 2
  • 3
  • 9