Questions tagged [symfony-2.3]

This is the Symfony 2.3.x specific tag. Use it in addition to the symfony2 tag if your question is specific to Symfony 2.3.x — not just 2.x.

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

Information

This tag is specific for the 2.3 version of Symfony, which was released on the 3 June 2013 as the first LTS version of Symfony. See the tag for general Symfony 2.x questions.

As of 11 June 2013, the latest stable release of Symfony 2.3 is version 2.3.1.

Living on the edge

There are a set of interesting links on the symfony blog about what's new in this version:

Useful links

771 questions
5
votes
1 answer

Symfony 2 assetic error 500 using controller in dev mode, works fine dumping from CLI?

My server is a custom virtual server running CentOS x64, node installed and working. Assetic configuration: assetic: use_controller: false node: /usr/bin/node filters: less: node_paths:…
gremo
  • 47,186
  • 75
  • 257
  • 421
5
votes
2 answers

sonataAdminBundle top navigation username and logout buttons

Symfony2 in current 2.3 version. I've installed sonataAdminBundle in dev-master version. I have fosUserBundle in dev-master too. The problem is that I have no username and logout buttons in the top of admin panel (navigation). I noticed that…
NHG
  • 5,807
  • 6
  • 34
  • 45
5
votes
1 answer

Listener not called in Console Command

I needed to persist additional entities when other entities are persisted or updated. Therefore I created a solution inspired from this post: https://stackoverflow.com/a/11054101/1526162. config.yml: services: transaktion.chain: class:…
Stefan Bergfeld
  • 113
  • 2
  • 9
5
votes
1 answer

Getting issues while trying to generate Doctrine2 CRUD

I trying to generate a simple Doctrine2 CRUD by running the task php app/console doctrine:generate:crud but I get this error just before it ends: [Doctrine\ORM\Mapping\MappingException] The target-entity ProductBundle\Entity\KList cannot be…
Reynier
  • 2,420
  • 11
  • 51
  • 91
5
votes
2 answers

Secured area with locale

How can I secure actions with locale - this was pretty easy in symfony1.4. I use now symfony2.3: My security.yml: firewalls: dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false login: pattern: …
5
votes
2 answers

Symfony 2.3 Bad Credentials Custom provider

I'm completely lost at the moment, two days that I try to figure why I always obtain a "Bad Credential" response on my login form. I've used the How to load Security Users from the Database tutorial. Is there any way to know what he's comparing to…
5
votes
1 answer

Symfony2 : How to upload a file without Doctrine?

I use Symfony2.3. I have a form like this :
{{ form_widget(form.pic) }} ... {{ form_widget(form._token) }}
and i want to upload user pictures in…
ABS
  • 2,626
  • 3
  • 28
  • 44
5
votes
3 answers

Right way to define and work with ENUM types from Symfony2 and Doctrine2

I'm using ENUM type in one of my tables but Doctrine doesn't like it so much. So I do my research and found this topic which basically talks about it. In this other doc from Doctrine project also talks about it and two possibles solutions. I'll use…
Reynier
  • 2,420
  • 11
  • 51
  • 91
5
votes
1 answer

"Remember me" test fails when using custom user provider, user entity, etc

I have a custom user provider and user entity that I have used successfully in Symfony 2.2. But now I upgraded to 2.3, and I realized the "remember me" functionality is broken. So I created a new sf2 app, and a functional test. The test passed when…
ChocoDeveloper
  • 14,160
  • 26
  • 79
  • 117
5
votes
1 answer

Symfony ESI breaks Varnish cache if cookies are enabled

I don't know what I am doing anymore. I had so many issues I don't know where to start. Here is my configuration: varnishd (varnish-3.0.3 revision 9e6a70f) Server version: Apache/2.2.22 (Unix) Symfony 2.3.1 First I've disabled Symfony AppCache in…
maxwell2022
  • 2,818
  • 5
  • 41
  • 60
5
votes
1 answer

jenkins error after build successful

I have a problem with jenkins. It reports that the build of my symfony2 project ist successful, but directly after that it crashes with ERROR: Publisher hudson.plugins.violations.ViolationsPublisher aborted due to exception java.io.EOFException:…
5
votes
1 answer

add custom logic to internal Symfony classes like SwitchUserListener or TemplateGuesser

I got a problem to add custom logic to some Symfony classes. SwitchUserListener I want to add a check, that a user cannot switch to a another user, which have more rights/roles, than the initial user. First attempt Overwrite the parameter in the…
timaschew
  • 16,254
  • 6
  • 61
  • 78
4
votes
1 answer

Copying parameters from .env.dist to .env

I'm in the process of upgrading a project from Symfony 2.3 to Symfony 3.4 and I'm a bit confused about the relationship between .env and .env.dist files. From what I understand, the relationship between them is the same as the relationship between…
yvoloshin
  • 378
  • 6
  • 18
4
votes
1 answer

Retrieve data from a form with GET method using symfony2

I can't retrieve data from my form, I tried differents ways but no result. My repository : public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add('min_price', 'text', array('mapped' => false, 'label' => 'De la…
TanGio
  • 766
  • 2
  • 12
  • 34
4
votes
1 answer

Fatal error: Uncaught exception 'ReflectionException' with message 'Class Cl\CommonBundle\Entity\integer does not exist

I have developed application in symfony2.3, it's working perfect in development environment but while I move to production it throws error. I tried but it can't resolve. Following all error comes form different page : This error comes while I tried…
Dipak
  • 2,248
  • 4
  • 22
  • 55