Questions tagged [symfony-2.1]

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

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

As of May 2013, 2.1 is deprecated in favor of the newer versions.

Information

This tag is specific for the 2.1 version of Symfony, which has been released on the 6 September 2012. See the tag for general Symfony 2.x questions.

Symfony 2.1 code is hosted and versioned on github.

As of 2 June 2013, the latest stable release of Symfony 2.1 is version 2.1.11.

Useful links

1094 questions
0
votes
1 answer

Symfony/Doctrine: "Catchable Fatal Error: Object of class could not be converted to string" when persisting

A symfony2 application has a Job entity that has as a property of type WebSite. A simplified representation of this without other properties or methods: /** * @ORM\Entity * @ORM\Table(name="Job") */ class Job { /** * @ORM\Id *…
Jon Cram
  • 16,609
  • 24
  • 76
  • 107
0
votes
1 answer

Why I don't have the 'formatter' attribute in my Symfony2 Form?

I was wondering, since an update of Symfony2.1 (I can't target the commit though) why I no longer have the "formatter" attribute on my jQueryDateType if ($form->getConfig()->hasAttribute('formatter')) returns false The whole class is here :…
sf_tristanb
  • 8,725
  • 17
  • 74
  • 118
0
votes
1 answer

symfony2: how and where is the logged user's locale stored?

Generally, after a user is logged, the contents of the site are shown in the locale that the user chooses from an hypothetical account settings. Where is that locale usually stored? In what way symfony2 handle it? Im using FOSUserBundle, I…
tirenweb
  • 30,963
  • 73
  • 183
  • 303
0
votes
3 answers

How to customize main form ID in Symfony2

I have problems with setting form wrapper custom ID. $options['attr']['id'] dont seem to work. All options passed to createForm() method seems to be ignored... I'm working on Symfony 2.1 beta 1 Form setup: $login_form = $this->createForm(new…
Maciej Pyszyński
  • 9,266
  • 3
  • 25
  • 28
0
votes
1 answer

Using DataTransformer without Custom Field Type gives error expecting FormFieldType

I'm in the need of a custom field that accepts either a string or a DateTime object as input. After some discussion I decided that DataTransformers are the way to go. I followed the instructions on the Cookbook, but I'm getting the follwing…
Michi
  • 2,480
  • 3
  • 28
  • 38
0
votes
1 answer

How to use entities in collection (+prototype) in Symfony 2.1

I want to add a collection of entities in Symfony 2.1.0-dev bug I got: Neither property "sitterDegrees" nor method "getSitterDegrees()" nor method "isSitterDegrees()" exists in class "xxx\Entity\Degrees" It happen because I have an entity in…
Tib
  • 2,553
  • 1
  • 27
  • 46
0
votes
1 answer

Behat 2.4 outputs nothing (with Symfony2Extension)

I'm currently migrating from behat 2.3 and BehatBundle to behat 2.4 and Symfony2Extension. My problem is : behat outputs nothing when I run php bin/behat. like : $ php bin/behat $ It seems to crash in…
Yohan G.
  • 1,176
  • 1
  • 7
  • 7
0
votes
1 answer

Authentication using Symfony 2.1-dev (Wrong credentials)

I'm using Symfony 2.1-dev and am having problems when authenticate users using a form. First of all my code The problem: When authenticating I get "Wrong credentials" error. I put some logging into the entity and as the logged string does not show…
Michi
  • 2,480
  • 3
  • 28
  • 38
-1
votes
1 answer

how to configure SwiftMailer in symfony 2?

please, I'm new to Symfony and I'm trying to configure mailer on Symfony 2 but I'm not finding any clear doc for this. And I'm in need of a route example to send email from an address to another just from back to test this . thank you I tried…
-1
votes
2 answers

Call container inside ExceptionListener

I am using Symfony and i have created custom ExceptionListener to handle error. class ExceptionListener { protected $templating; protected $kernel; public function __construct(EngineInterface $templating, $kernel) { …
scott
  • 3,112
  • 19
  • 52
  • 90
-1
votes
2 answers

Internal page redirection in Symfony/Sonata

I'm trying to work on my sonata sandbox. The problem that I face this message internal page redirection when I try to reload profile or register routes.
famas23
  • 2,072
  • 4
  • 17
  • 53
-1
votes
1 answer

How to logout from app using symfony2

I have a question, I'm new in symfony2 and I tried to create a small system with login and logout. The problem is that in my debug bar after logout I get : Logged in as anon, Authenticated Yes, Token class Anonymous Token. My controller : class…
TanGio
  • 766
  • 2
  • 12
  • 34
-1
votes
1 answer

FosFacebookConnect Popup disappears immediately

i use Fos Facebook Bundle v 1 in symfony 2.1 but it works at 90%. Some browers (but it's work usually with all browers), opens a login popup but close it immediately, where the problem may come ? Thanks a lot !
-1
votes
1 answer

using of unique constraint making the user unable to login in symfony2

I have used an unique constraint for the username in the registration form of the user. User entity has following code /* * @UniqueEntity(fields="username",message="Username is already in use") */ class users { /** * @var string *…
bhari
  • 291
  • 2
  • 5
  • 15
-1
votes
1 answer

get picture of profile in FacebookBundle

someone knowS how to get a profile picture from Json data,I get all information(usernam,firstname,FacebookId) but I can't have the link of picture of my profile : namespace djepo\UserBundle\Security\User\Provider; use…
Nll
  • 819
  • 5
  • 19
  • 41
1 2 3
72
73