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

sending data from controller to a typeclass in symfony 3

i'm trying to get data from the database and pas it to the form's drop down list this is the Entity from where i'm looking to get the data from, specifically the type column
0
votes
1 answer

Symfony3 registering exception listener

I have a Stripe exception wrapper for all of the exceptions that Stripe might throw based on certain cases. I'm trying to register an event listener for that exception being thrown, but it doesn't seem like the listener is ever fired. Instead of…
0
votes
0 answers

Symfony FOSRest bundle Installation error

I am going to use Symfony Framework 3.3 for API development. I am following these steps written in this blog: https://www.cloudways.com/blog/rest-api-in-symfony-3-1/ In the first minutes of installment I faced off with a problem. An error occurred…
gobo
  • 310
  • 1
  • 4
  • 23
0
votes
1 answer

Return the difference between two DateTime objects using KnpTimeBundle

I'm trying to get the ago datetime using KnpTimeBundle . As the documentaion says , i need to use the helper class to acess to diff() function : Take a look to my controller.php : use Knp\Bundle\TimeBundle\Templating\Helper as Helper; /** *…
famas23
  • 2,072
  • 4
  • 17
  • 53
0
votes
1 answer

Foreign key not stored in database using embed form in symfony 3

I have the following entities, form types and controller Entity Client namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Doctrine\Common\Collections\ArrayCollection; /** * Client * * @ORM\Table(name="client") *…
user75472
  • 1,277
  • 4
  • 28
  • 53
0
votes
0 answers

Cannot read property fiscalName of undefined JSON Response Symfony

It generates a fail when you try to pass a variable as an index instead of a full type: new:1668 Uncaught TypeError: Cannot read property 'fiscalName' of undefined at Object.success (new:1668) at i (jquery.min.js:2) at Object.fireWith [as…
0
votes
1 answer

Gitlab CI Ssl Error

I dont have error on my pc.But ı have a error ssl on gitlabci. How is it solve this problem ? Server:Debian Error Output: [Aws\S3\Exception\S3Exception] Error executing "PutObject" on…
Burhan Yılmaz
  • 774
  • 8
  • 21
0
votes
1 answer

How many need tables in mongoDB for use fosuserbundle symfony 3.2?

I have created User collection and field(id,username,email,password) but fosuserbundle is not working So please give me how many document collection need for fosuserbundle use in symfony 3.2
vineet
  • 107
  • 8
0
votes
2 answers

Symfony3 testing the redirectToRoute() method with phpunit

I am trying to make one of the most simplest (I think) functional test by PHPUnit for a Symfony3 controller. My controller code is just a redirect: class DefaultController extends Controller { public function indexAction() { return…
Stiff Roy
  • 124
  • 1
  • 14
0
votes
1 answer

Appear old information already entered in a form

I'm trying to show errors validation message with the old The information already entered , but the problém when the form is not valid and it's submitted else if ($form->isSubmitted()&& !$form->isValid()) : the old input content(old The information…
famas23
  • 2,072
  • 4
  • 17
  • 53
0
votes
1 answer

Add constraint to compare two inputs in submitted form

A form with start and end dates is submitted and i need a Constraint which would check if the end date is later than start date. The problem is that i can not attack a Constraint to the form itself, only to the field thus i can only get the field…
Laurynas Mališauskas
  • 1,909
  • 1
  • 19
  • 34
0
votes
1 answer

Error in using findBy() method in Symfony3

I have a simple controller as following: public function fetchDataAction($username){ $user_email = $this -> getDoctrine() -> getRepository('AdminBundle:Users') -> findBy( array('username' => $username ), array('id' => 2)); …
ahoora
  • 19
  • 4
0
votes
1 answer

How to fetch data from two tables in symfony 3 with one query

I have two tables clients and contacts and contacts has client_id as foreign key $client = $this->getDoctrine()->getRepository('MyBundle:Client')->findAll(); This gives the data from table clients but I need data from contacts as well which has…
user75472
  • 1,277
  • 4
  • 28
  • 53
0
votes
1 answer

Symfony 3 - how to prevent sql table from duplicate rows

I'm creating API in Symfony3 and I have a situation where the user can add games to his stack. So I have the table which connects user id's and game id's, but when I'm adding rows to DB with that there can be a situation where there can be…
hm hm
  • 87
  • 2
  • 9
0
votes
2 answers

Transforming a String to a File using View Transformer

I'm currently using a crud application to create a blog style site. The blog object requires an upload of a file, which I store in the database as a string. However, when I try to edit an existing Blog, I get this error. The form's view data is…
Kaley36
  • 233
  • 9
  • 19