[symfony-users] Questions, concepts and explanations about SfGuardUserPlugin and personal OpenID.

2011-06-14 Thread Guilherme Veras
Hello all, I've been looking for information on how to extend the plugin sfGuardUser in the following situation: I have several users and several groups. And in each group the user has a different set of permissions. I thought about creating multiple entries in the table sf_guard_profile or

[symfony-users] symfony2 beta4 Split 1 relation in 3 collections in a form?

2011-06-14 Thread ibrows_symfony
My model looks like this: Order --1m-- Address --1---m-- AddressType Actually there are 3 different AddressType. I would like to split the collection of Address in these 3 types in my form. Actually, I tried it with this code: $builder-add('send_addresses', 'collection', array(

[symfony-users] Aw: [sf2] Missing Namespaces on some bundles after Update on Beta4

2011-06-14 Thread con
I have just created a clean installation with beta4, added all needed bundles (in my case, doctrine-mongodb, doctrine-mongodb-odm, DoctrineMongoDBBundle, FOS UserBundle, StofDoctrineExtensions) these are the versions: con@conbuntu:~/www/lab/Symfony_Standard_2.0.0BETA4-run-test/Symfony$ git

[symfony-users] Aw: Re: Can't get MongoDB working

2011-06-14 Thread con
Hmm it seems I have some very bad luck... it doesnt work for me with the new directory strucuture of mappings... these are my errors in detail: https://groups.google.com/forum/#!topic/symfony-users/W3Gp-RQJIUI -- If you want to report a vulnerability issue on symfony, please send it to

Re: [symfony-users] [symfony2] file permissions, difference between app/console and apache

2011-06-14 Thread Mario Alberto Alvarez Garcia
Hi The solution to this problem was already created. Read this: http://symfony.com/doc/2.0/book/installation.html#configuration-and-setup There you will see how to setup your permissions to avoid sudo chmod... stuff every time. -- If you want to report a vulnerability issue on symfony,

[symfony-users] Forms / Disable CRSF protection

2011-06-14 Thread Christophe Beyer
Is it possible to disable the CRSF protection for one form ? What is the syntax of this option in the form config ? Thanks ! -- Christophe -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message

Re: [symfony-users] Forms / Disable CRSF protection

2011-06-14 Thread Emanuel Winblad
Hi! Check the configuration reference for the FrameworkBundle: http://symfony.com/doc/current/reference/configuration/framework.html I think it's found here: framework: /***/ # form configuration form: enabled:true csrf_protection: enabled:true

Re: [symfony-users] Forms / Disable CRSF protection

2011-06-14 Thread Christophe Beyer
Thanks, but what I want is to disable the CRSF protection for only one form, not for all the framework (In 99/100 case I need this important protection)... -- Christophe Le 14 juin 2011 à 14:39, Emanuel Winblad a écrit : Hi! Check the configuration reference for the FrameworkBundle:

[symfony-users] Symfony 2 - Doctrine and inheritance

2011-06-14 Thread Jérémy Simonklein
Hi all, I would want to create 2 different classes GT and FT from a parent class T. I want GT and FT to have same attributes thant T, but FT and GT should have two additionnal different attributes. How can I do it ? I've searched for doctrine inheritance but nothing about it for Symphony

Re: [symfony-users] Symfony 2 - Doctrine and inheritance

2011-06-14 Thread Marco Pivetta
class T { protected $commonField1; protected $commonField2; } class GT extends T { protected $otherField1; protected $otherField2; } class FT extends T { protected $otherField3; protected $otherField4; } This is for plain PHP... If you need to implement that in Doctrine 2 you

Re: [symfony-users] Symfony 2 - Doctrine and inheritance

2011-06-14 Thread Christophe COEVOET
Le 14/06/2011 14:47, Jérémy Simonklein a écrit : Hi all, I would want to create 2 different classes GT and FT from a parent class T. I want GT and FT to have same attributes thant T, but FT and GT should have two additionnal different attributes. How can I do it ? I've searched for doctrine

[symfony-users] [sf2] [beta4] 324 connection closed after any error

2011-06-14 Thread con
On Beta4, I receive for every error that happens a 324 (net::ERR_EMPTY_RESPONSE): Connection Closed Response.. This response stays the same even when I change url URL until I reload or restart my apache. This did not happen before (just tried it with beta1 before).. I first noticed it after

Re: [symfony-users] Forms / Disable CRSF protection

2011-06-14 Thread Christophe Beyer
Found myself in the doc : http://symfony.com/doc/2.0/book/forms.html#csrf-protection I looked for CRSF instead of CSRF in the doc :) -- Christophe Le 14 juin 2011 à 14:42, Christophe Beyer a écrit : Thanks, but what I want is to disable the CRSF protection for only one form, not for all

Re : Re: [symfony-users] [sf2] Html Escaping

2011-06-14 Thread Thomas
I've fixed my problem, In the Twig documentation (http://www.twig-project.org/doc/templates.html) i've found this : {% autoescape false %} Everything will be outputed as is in this block{% endautoescape %} So like Chirstophe said, the output escaping is enabled by default. Adding {%

Re: [symfony-users] Re: - [beta3] Empty values on the page that exists in database

2011-06-14 Thread seven seven
Hi, Just wanted to give a response here ,I solved it, it was because of the fallback option and the fact I didn't understood properly the internationalization logic. It is working with the below code: framework: translator: enabled:true fallback: ro Thanks ! On

[symfony-users] Re: localized security (FOSUserBundle)

2011-06-14 Thread theinterned
By the way: I submitted a patch to allow logout path and logout target path to be localized as well: https://github.com/symfony/symfony/pull/1277#issuecomment-1345322 On Jun 10, 2:33 pm, theinterned ned...@gmail.com wrote: Ah great! Thanks so much. This looks like the commit