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
8
votes
2 answers

Property (...) does not exist (Symfony 3)

In my Symfony 3 project, I have a ManyToMany relation between "users" and "roles". It used to work, but now I have an error: Property AppBundle\Entity\Role::$user does not exist I don't know what I did, probably it's because of running a "php…
konrad_firm
  • 859
  • 1
  • 11
  • 28
8
votes
2 answers

How do I get Symfony forms to work with a REST API?

I'm currently trying to get symfony forms to work with my post and put rest api endpoint. Currently I have: $request = $this->getRequest(); $cc = new CreditCard(); $form = $this->createForm(new CreditCardType(),…
Derick F
  • 2,749
  • 3
  • 20
  • 30
8
votes
2 answers

Symfony 2.3 Failed to remove file with php composer.phar update

I am following the guide on symblog: http://tutorial.symblog.co.uk/docs/doctrine-2-the-blog-model.html I am trying to run: $ php composer.phar update after updating the composer.json but get the following…
user1037355
8
votes
2 answers

CAS Authentication Symfony2

I'm looking for a bundle to integrate CAS authentication on Symfony 2.3. I found these options and the truth is I'm not convinced any, since almost all bundles seem to be abandoned without updating. 1.- sensiolabs / CasBundle:…
JGrinon
  • 1,453
  • 1
  • 14
  • 36
8
votes
2 answers

Symfony 2.3: How do you configure SwiftMailer to automatically use a custom plugin?

I have created a custom SwiftMailer plugin which I would like to have SwiftMailer use by default in my Symfony 2.3 application. The only documentation I can find in this regard is here:…
Nada_Surf
  • 616
  • 1
  • 7
  • 19
8
votes
1 answer

Correct way to log from Entities and Repositories in Symfony2

What is a way to log messages or errors from an Entity or Repository class in the symfony2 architecture? In symfony1 you could use the singleton to kill puppies by doing something like this to get the logger from…
caponica
  • 3,788
  • 4
  • 32
  • 48
8
votes
2 answers

How to log in User in Session within a Functional Test in Symfony 2.3?

I have read many posts on stackoverflow about this. But most of the methods not useful in Symfony 2.3. So I have try to log in user manually in test to make some actions in back-end. Here is my security.yml security: ... role_hierarchy: …
Serge Kvashnin
  • 4,332
  • 4
  • 23
  • 37
8
votes
3 answers

How to access other services inside a Symfony FormType?

I try to access a service from a FormType extended by AbstractType. How can I do that? Thanks!
Gerrit
  • 2,515
  • 5
  • 38
  • 63
8
votes
3 answers

Symfony2 Form Builder Select Across Join Table with Metadata

I have 3 entities: [Member] ----OneToMany----> [MemberCategory] ---ManyToOne---> [Category] This works well as far as fetching results from the database, but I can't get the Form Builder to build a correct form controls. I want a list of all…
Peter Wooster
  • 6,009
  • 2
  • 27
  • 39
8
votes
3 answers

Combine Questionnaire with User entity in form - symfony2

I need to add questionnaire of multiple choice questions to my registration form. The questions and options are in two entities:
Fo.
  • 3,752
  • 7
  • 28
  • 44
7
votes
1 answer

how to remove a form field in embedded forms from symfony 2 controller

I have a form as below: class AdminEmployerForm extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options) { $builder ->add('firstName', 'text') ->add('user', new…
sonam
  • 3,720
  • 12
  • 45
  • 66
7
votes
3 answers

Symfony HttpFoundation UploadedFile "not uploaded due to unknown error" when using Doctrine DataFixtures

I've been using my Attachment entity based on the cookbook recipie How To Handle File Uploads With Doctrine in Symfony 2.3. It works well, even in functional tests. However using it with Doctrine DataFixtures is causing me…
Adam Elsodaney
  • 7,722
  • 6
  • 39
  • 65
7
votes
1 answer

Can I change a Form Class action on build?

On a form classe's buildForm method (AbstractType derived) can I set the action of that form? What I want to do is similar to the setAction method that I can use when building an embedded form: $form = $this->createFormBuilder() …
Nelson Teixeira
  • 6,297
  • 5
  • 36
  • 73
7
votes
1 answer

How to delete an entity from a template with a list of entities (CRUD)?

Explanation: I have generated the CRUD of an entity, getting the following default actions: indexAction(): lists all entities. showAction($id): finds (by ID) and displays an entity. deleteAction($id): deletes an entity. another actions. So, I have…
luisete89
  • 200
  • 1
  • 2
  • 11
6
votes
1 answer

/usr/bin/java not found when dumping assetic

I ran php app/console assetic:dump to publish assetics for a Symfony2 application, but I got this error: [Assetic\Exception\FilterException] An error occurred while running: '/usr/bin/java' '-jar'…
jstuardo
  • 3,901
  • 14
  • 61
  • 136
1 2
3
51 52