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
0
votes
1 answer

How to get the id of all the materials?

help me public function indexAction() { $tpos = $this->getDoctrine()->getRepository('TestBundle:Materials')->findAll(); foreach($tposs as $tpos) { $posts['id']; } echo $midcount; how will you? Notice: Undefined index: id
Alex Bat
  • 1
  • 3
0
votes
2 answers

Symfony2 - Call the same getRepository in all controller actions

I'm using a repository in Symfony2-controller like this: $blog = $em->getRepository('BlogBloggerBundle:BlogData')->getBlogData($id); Before I call it into the twig view through an array. All works right but the issue is that it make up a footer…
Roberto Rizzi
  • 1,525
  • 5
  • 26
  • 39
0
votes
2 answers

Symfony2 Catchable Fatal Error: Object of class DateTime could not be converted to string

I have a person (Employee) search that is supposed to return a list of people by name, surname, date of birth and some other parameters. the search works fine for every parameter exempt for the date parameters, like date of birth. my controller code…
Abel
  • 538
  • 5
  • 8
  • 28
0
votes
1 answer

CreateBundle installation is causing errors

I am following the instructions at: http://symfony.com/doc/master/cmf/cookbook/installing_configuring_inline_editing.html When I try to do a cache clear, I am getting: [Symfony\Component\Config\Definition\Exception\InvalidConfigurationException] …
kratos
  • 2,465
  • 2
  • 27
  • 45
0
votes
1 answer

symfony2 image add,edit,delete,caption text and change image order bundle

Any bundle in symfony2 provide Image Uploads,Edit,Delete,Listing,change images order and image caption functionality. Thanks
0
votes
1 answer

Symfony 2.3: can't persuade Capifony to install vendors with Composer

I've just completed an upgrade from Symfony2 2.0 to 2.3.4. This is now working on my local dev server and I'm looking to deploy it with Capifony. A big change with Symfony is away from /bin/vendor toward Composer for managing dependencies. I've…
Adam Knowles
  • 492
  • 5
  • 14
0
votes
3 answers

assetic:dump fails with ".pull-right is undefined: line: 60"

I was trying to install the glyphicons locally rather than pulling from the CDN (which had stopped displaying them, for reasons I didn't investigate). Now running assetic:dump results in an exception I have no idea how to…
lee
  • 103
  • 1
  • 7
0
votes
1 answer

How to get path parts from Symfony2 path

I'm a beginner with Symfony, and I'm trying to get all parts from an url formatted like this : ...pathToSite/Symfony/pathToBundleControllerAction/part1/part2/...../partN I would be able to get all part[1..N] individually, since the goal is to have…
Benj
  • 1,184
  • 7
  • 26
  • 57
0
votes
1 answer

Password required when editing

I'm trying to create/edit users and I'm having a slight problem with the password field. When creating a user, it is fair to assume that the password field is required, however, I don't want it required when editing a user Is there an easy way to do…
user1970557
  • 515
  • 1
  • 9
  • 23
0
votes
2 answers

Symfony2 - Entity repository JSON encode for AJAX call

I'm trying to build a dynamic text field with AJAX autocomplete. I defined a method into the controller which is used for the AJAX call. public function cityAction(Request $request) { $repository = $this->getDoctrine() …
Roberto Rizzi
  • 1,525
  • 5
  • 26
  • 39
0
votes
2 answers

mmoreram/GearmanBundle throws exception on calling \GearmanClient method

When I execute the following code: $Gearman = $this->get('gearman'); $Gearman->doNormalJob('BundleName~test'); My code throws the following exception: GearmanClient::doNormal() expects parameter 2 to be string, array given Stack: #0 [internal…
Rene Terstegen
  • 7,911
  • 18
  • 52
  • 74
0
votes
1 answer

Symfony2 - Impossible to access an attribute ("date") on a string variable ("inline")

I have create a entity "Fact" width "date" attribute. /** * Fact * * @ORM\Table(name="fact") * @ORM\Entity() */ class Fact { ..... /** * @var \DateTime * * @ORM\Column(name="date", type="datetime") */ private…
Abir
  • 63
  • 8
0
votes
3 answers

validation of form embed

I have a form using a collection of embed forms. In my main form, i have a validation on a field "comment". This validation, simple, works fine. My collection of embed form treat another entity. I would like to have a validation on this entity field…
goto
  • 7,908
  • 10
  • 48
  • 58
0
votes
1 answer

Custom entity provider in symfony: There is no user provider for user "...\...\Entity\User"

I have just implemented login functionality similar to this tutorial http://symfony.com/doc/current/cookbook/security/entity_provider.html , but when I try to log in, I get: "There is no user provider for user "App\SomeBundle\Entity\User"" My…
Petr Jirásek
  • 453
  • 1
  • 5
  • 17
0
votes
1 answer

High CPU usage with php command line scripts, is php-fpm the solution?

Update (2013 Oct, 1st): Today I finally found out what was the issue. After debugging for hours with xdebug and trying to execute multiple scripts I noticed that the body of the script is not the problem. When executing tests worker with a sleep of…
maxwell2022
  • 2,818
  • 5
  • 41
  • 60