0
votes
0answers
7 views

Datetime zone occasionally converting to UTC and formatting incorrectly

I have an object, and in the constructor for said object I pass another object that is posted from an API. The relevant constructor code is: $this->timeStamp = new ...
0
votes
0answers
6 views

Why is Symfony2 parsing the entire Forms Collection - Performance issue

I have a Forms Collection in my Symfony2.3 project. From time to time, I can have up to 200 forms in my collection. Then, in order to speed up things, I am only submitting some of those 200 forms ...
0
votes
1answer
12 views

How to access user information from view in Symfony2

How can I access to user information (security-context) from view in symfony2. Using PHP, not twig templates. Thanks in advance.
0
votes
0answers
13 views

Symfony2 Twig extension |trans filter bug

recently, i updated my project with composer. I don't know if the problem is created after or before the update, but in the mistake, this is the update log : - Removing twig/twig (v1.14.1) - ...
0
votes
0answers
14 views

How to create a site-search in Symfony2?

I started creating own Symfony bundles some weeks ago. I've created some entities with all the stuff around (also used the Doctrine CRUD-command), made some twig extensions and created new templates. ...
0
votes
1answer
18 views

Symfony ajax Response but with headers: HTTP/1.0 200 OK Cache-Control: no-cache Date

i'm in troubles with Symfony and an ajax call. I'm in Local server on Windows 8 with XAMPP 1.8.2. Every works good, but when i take response i have this, below the right text: HTTP/1.0 200 OK ...
1
vote
0answers
12 views

Symfony 2 Doctrine ODM with reference

So I have two following documents: Wallpapers /** * @MongoDB\Document( * collection="wallpapers", * repositoryClass="Application\Bundle\DefaultBundle\Repository\WallpaperRepository" * ) ...
0
votes
0answers
6 views

Mapping FAIL - The entity-class 'PI\UnidadBundle\Entity\HorasPorUnidad' mapping is invalid

I'm having a problem here and I don't know how to fix it. See I have this two entities: <?php namespace PI\ProyectoBundle\Entity; use Doctrine\ORM\Mapping as ORM; use ...
0
votes
1answer
10 views

Symfony2 Routes with prefixed optional values

there is the following requirement for my url structure. /{category}.html /{category}-color-{color}.html /color-{color}.html All those urls points to a single controller which generates a filtered ...
-1
votes
1answer
21 views

How to print values in an array in a twig in symfony 2?

I am passing the following two dimentional array to my twig. Array ( [0] => Array ( [restaurantname] => Pizza Hut [restaurantaddress] => Union Place ...
0
votes
1answer
17 views

Symfony2 - how to clear / edit a flash message

I am setting a flash message in my controller when rendering a twig template. If there is a post action, I would like to redirect to the same page, but change the flash message. if ...
1
vote
0answers
19 views

Twig UTF-8 displaying utf-8 encoded text from doctrine 2

I'm having a problem with the displaying of utf-8 characters in HTML. The problem is that I save utf-8 text in a database and that when i retrieve this with Doctrine (it is still UTF-8 then, I ...
1
vote
1answer
17 views

Slow Symfony2 application

There is a Symfony2 application based on API completely and makes 6 requests on average per page to API using Guzzle. Thus response time exceeds 3,000ms which is very high. While investigating the ...
0
votes
2answers
26 views

Why i get “No route found for…”

Hello what it is all about? Its about setting a routing using symfony2 and why it generate "No route found for..." Exacly it's look like this: app\config\routing.yml user: resource: ...
0
votes
0answers
16 views

Symfony2 post-update-cmd gives “An error occurred when generating the bootstrap file”

I am currently on Symfony2 2.3.7. When I run the composer update command. In the post-update-cmd a script is run to update symfony2. But it fails: Script ...
1
vote
1answer
33 views

How to add user-defined methods to Doctrine entities

What is the official pattern to add user-defined methods to Doctrine ORM entities? Basically to add object-specific methods, like settings defaults, doing private object processing. I tried extending ...
1
vote
1answer
24 views

Symfony 2 - FOSUserBundle, there is no access token?

I'm currently learning symfony 2 framework and I use FOSUserBundle for the management of my users. What I want to do is working with access token when user is connected. Is safer for the security. So ...
0
votes
0answers
35 views

Symfony: should i use FormBuilder for this form?

I'm trying to find the best practice on how to create this form, i have an entity and i want to create a form that will list all entities along with a checkbox for each and the user can select several ...
1
vote
0answers
22 views

Symfony2 extract method from controller, but how? Form cannot change entity

I have a fairly ugly controller method I would like to refactor / extract. I can only test this in a integration type test which kind of signals a code smell. The method processes the form and needs ...
0
votes
1answer
16 views

Failed to clone https://github.com/doctrine/DoctrineFixturesBundle.git

I'm trying to install doctrine/doctrine-fixtures-bundle on Symfony2 to create a Rest API. Terminal root@symfonyRest:/var/www/Symfony# php5 composer.phar require doctrine/doctrine-fixtures-bundle ...
0
votes
0answers
11 views

Adding information to Behat output from custom context code

I am trying to determine how I would add additional information to Behat's output (pretty, html, junit, etc) so I can have more contextual information for the test purposes. Specifically I have some ...
0
votes
1answer
22 views

Explode an Entity Object in Symfony2

I'm trying to create galleries in my Symfony2 Web App. Each post may or may not have a gallery. My galleries are text mapping types, under the Post entity/class: #Post.orm.yml ...
0
votes
1answer
17 views

How split one huge service configuration file into several bundle configuration files

I am trying to split one huge monolithic Symfony2 service configuration file into several smaller files and group them by functionality, etc. My code: - app/config/config.yml: imports: - { ...
0
votes
0answers
21 views

Symfony2 and twig - Collection of Forms submission - HOW TO SUBMIT SOME FORMS ONLY

I am using the Symfony example to build a collection of forms: http://symfony.com/doc/current/cookbook/form/form_collections.html Everything works fine except when I am submitting all thse forms. I ...
0
votes
1answer
12 views

Firewall redirect to translated page

I have a Symfony2 project with FOSUserBundle installed. When a user try to access http://myhost.com/forum , the system redirects him to http://myhost.com/login. This is my security.yml file: ...
3
votes
1answer
29 views

Symfony Doctrine optimisation

I have MN relation between USER and CATEGORY table. Problem appear when user has more than 100 interests. When I execute very simple query like this: return ...
0
votes
2answers
21 views

Table doesn't exist within FOSUserBundle

I'm currently developing an administration interface with FOSUserBundle, but I'm facing an annoying issue: I've created an Operator class to hold FOSUserBundle's users, which is mapped in Symfony2 ...
-3
votes
0answers
20 views

Symfony2 AJAX Form Events

I have yet to see a proper example of this? I know there is a whole example of how to change your form based on user actions in the documentation, but I can simply not find any proper examples of what ...
0
votes
1answer
20 views

Assetic dump and moving the symfony project to a new directory

I am working on a first time symfony project (with Mopa Bootstrap) in a subdirectory on a development server (/var/www/www.example1.com). The subdirectory is called www.example1.com and is loaded this ...
0
votes
0answers
27 views

Symfony2.3 Doctrine Entity Manager - Illegal offset type in isset or empty

I have a project built on Symfony 2.3 with Doctrine and I have a form 'EducationType' for an entity 'UserEducation' and it contains a select box for a related entity 'EducationDegree' ...
0
votes
0answers
14 views

How to work with date ranges in Elasticsearch and Symfony2

I have a standard Datetime field in my Doctrine-based entity class: /** * @ORM\Column(type="datetime") */ private $occurring; This generates a DateTime object and works as expected. But a problem ...
2
votes
1answer
30 views

FindAll() result on Catchable Fatal Error: Object of class DateTime could not be converted to string

I make a simple findAll function and I get the following error: Catchable Fatal Error: Object of class DateTime could not be converted to string in ...
3
votes
1answer
35 views

Can't escape dot character in translation messages

I want to translate a finished web page and I've followed this tutorial: https://coderwall.com/p/eiqd_g When I try to translate this string in a twig template: 'Bienvenido a Itransformer.es' like ...
0
votes
0answers
22 views

How to map two entities from different bundles which are under different entity managers (in different databases)?

I have Two entities, namespace Acme\DemoBundle\Entity; class Term { } namespace Acme\OtherBundle\Entity; class Security { $term; } In Security.orm.yml oneToOne term: ...
0
votes
0answers
17 views

Symfony2 Form Events with different entity classes

Been sitting with a little problem here... I'm trying to figure out how to build a select that, when a different option is selected, it should return with another select with the related entity's data ...
0
votes
2answers
49 views

Symfony2 and Doctrine with empty relation

I just started learning Symfony2 (and I do not have much php experience), so my question may seem funny for someone. I'm now following Databases and Doctrine section of The Book, and my question ...
0
votes
0answers
13 views

API token generation for Symfony2

I am in the process of development of REST API server using Symfony2 framework. Following bundles have been added already and are in use: FOSRestBundle FOSUserBundle JMSSerializerBundle Basically ...
-6
votes
0answers
23 views

Symfony 2 - Configuration path “security.access_control” cannot be overwritten [on hold]

I'm receiving the following error kindly help me on this .... please provide me the proper explained solution as i'm new to symfony. ForbiddenOverwriteException: Configuration path ...
0
votes
1answer
15 views

Symfony: choice_list with pre-selected values

I have an array field in my Entity called Type and I want to restrict the value that the user can specify for the field as this: Type1 [] subtitle1 [] subtitle2 [] subtitle3 ...
0
votes
0answers
17 views

Does Symfony2 not import namespaces from a directory?

From the php docs (Example 4): <?php use My\Full\Classname as Another, My\Full\NSname; $obj = new Another; // instantiates object of class My\Full\Classname $obj = new \Another; // instantiates ...
0
votes
1answer
19 views

laravel 4 - I am getting NotFoundException

I am new to laravel 4. This my first time. I am trying here is that whenever I click in a link i will go to route. there I will print something. Now one part of the link has to be variable. In the ...
-1
votes
0answers
13 views

Does Symfony Sylius support downloadable products?

guys, I'm planning a webshop for digital products. I find Sylius. Does Sylius support downloadable products? And can it be used for production purpose? Thank you.
-2
votes
1answer
34 views

Will Ratchet change the way I write PHP? [on hold]

Alright, I'm looking to use Ratchet for a PHP/Websockets application. It apparently includes the React, Guzzle, and Symfony2 libraries, or at least parts of them. I've never used a library before. ...
0
votes
1answer
26 views

Symfony2: Circular reference exception - Monolog & custom exception handler

In an attempt to combine Monolog e-mailing errors with a custom exception handler I get the following: [Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException] ...
0
votes
1answer
24 views

Login form action issue in symfony2 traditional login form

I'm using symfony2 and I created a form for user login, in the symfony site which is here: enter link description here it say you don't need to handle the <form action="{{ path('login_check') }}" ...
1
vote
1answer
30 views

PHPUnit is giving me autoload.php not found exception

UPDATE I've fixed the problem, It was all about the right permissions in app/cache and app/logs. When I try to run PHPUnit in symfony2, Using this command phpunit -c app/ i get this huge error ...
0
votes
2answers
18 views

Override FOSUser Registration Form

I want to add two field "Name" and "FirstName" in the FosUser Registration Form, but it doesn't work. Here is what I do : CulturalStore/UserBundle/Ressources/config/services.yml : services: ...
0
votes
1answer
24 views

How to get a list of values from a database table in Symfony2 using doctrine?

I am new to symfony2 and doctrine. I need to know how to get the complete list from a table using a doctrine command. getDoctrine()->getManager()->getRepository('bundeName')->findOneBy() gets only one ...
0
votes
0answers
10 views

SonataAdmin Bundle is already extended by two bundles

I'm having a problem with Sonata admin Bundle , i have already exteneded sonata admin bundle in one of my bundles , now i want to do the same in an another bundle so that the admin manage the entities ...
0
votes
1answer
37 views

Symfony2: prod not found 404 = 200?

In the prod environment when a nonexistent URI (e.g., .../green) is requested I'd expect the custom 404 error page to be rendered. The response header is Date: Sat, 16 Nov 2013 19:11:55 GMT Server: ...

15 30 50 per page