Re: [symfony-users] Re: FOS/UserBundle "usernameCanonical" field problem

2011-05-13 Thread Carl
In that case, that's probably the problem right there. The schema metadata files have been renamed for beta2 and the latest version of UserBundle has been updated accordingly. Not only have the files been renamed, but their location has changed as well. So the mapping for the base User entity ca

Re: [symfony-users] Re: FOS/UserBundle "usernameCanonical" field problem

2011-05-13 Thread Zolzaya Erdenebaatar
Thank you for reply. I'm using Symfony 2Beta1 and UserBundle's latest version. Reason of redefining username, password and email is it's not generated into table. Columns are not created in table / in my example fos_user/. On Sat, May 14, 2011 at 12:12 PM, Carl wrote: > Ok, I guess the other que

Re: [symfony-users] deployment

2011-05-13 Thread Erkhembayar Gantulga
HI Hamza Tlili. * * It's sound like you didn't enable sfGuardPermission module in your application settings.yml. It should look like following: //settings.yml enabled_modules: [... ,sfGuardPermission] Hope it would help. Erkhembayar Gantulga -- If you want to report a vulnerabili

Re: [symfony-users] Re: FOS/UserBundle "usernameCanonical" field problem

2011-05-13 Thread Carl
Ok, I guess the other questions I'd ask are: which version of Symfony2 are you using and which version of UserBundle are you using? Are both completely up-to-date? From the configuration you posted on Stackoverflow it looks like you're probably using a fairly recent version of each but it can't

Re: [symfony-users] Re: FOS/UserBundle "usernameCanonical" field problem

2011-05-13 Thread Zolzaya Erdenebaatar
Yes, of course. See more on http://stackoverflow.com/questions/5999335/fos-userbundle-unrecognized-field-usernamecanonical On Sat, May 14, 2011 at 11:10 AM, Carl wrote: > Does your User entity extend the User entity that comes with the > UserBundle? Also, have you configured UserBundle to use yo

[symfony-users] Re: FOS/UserBundle "usernameCanonical" field problem

2011-05-13 Thread Carl
Does your User entity extend the User entity that comes with the UserBundle? Also, have you configured UserBundle to use your User entity in config.yml? fos_user: db_driver: orm firewall_name: main class: model: user: CFP\Bundle\MyBundle\Entity\User -- If you wan

Re: [symfony-users] [Symfony2] NotFoundHttpException no longer caught/handled in prod environment?

2011-05-13 Thread Carl
It looks like the MethodNotAllowedException (I think that's the name) is affected as well. If I try to access a route that requires the method to be POST via the GET method, I just get a blank white page. If I enable error handling, a raw PHP error message is displayed saying that the exception

[symfony-users] FOS/UserBundle "usernameCanonical" field problem

2011-05-13 Thread user123
Hi, I'm install UserBundle and when I trying to login and I trying register new user. I get above errors: Trying to register new user: The "PR\SecurityBundle\Entity\User" class metadata does not have any "usernameCanonical" field or association mapping. Trying to login: Unrecognized field: userna

Re: [symfony-users] FOS/UserBundle too many redirect problem

2011-05-13 Thread Zolzaya Erdenebaatar
I haven't no idea. How to configure it. Please help me? On Sat, May 14, 2011 at 8:28 AM, Zolzaya Erdenebaatar wrote: > Thank you Tim Nagel. But I get still get error. Can you edit my config file > please? > > > On Sat, May 14, 2011 at 8:20 AM, Tim Nagel wrote: > >> Sorry missed it - You must hav

Re: [symfony-users] FOS/UserBundle too many redirect problem

2011-05-13 Thread Zolzaya Erdenebaatar
Thank you Tim Nagel. But I get still get error. Can you edit my config file please? On Sat, May 14, 2011 at 8:20 AM, Tim Nagel wrote: > Sorry missed it - You must have security enabled for the login form as > well (security:false is not suitable). > > > t > > > On Sat, May 14, 2011 at 10:20, Tim

Re: [symfony-users] FOS/UserBundle too many redirect problem

2011-05-13 Thread Tim Nagel
Sorry missed it - You must have security enabled for the login form as well (security:false is not suitable). t On Sat, May 14, 2011 at 10:20, Tim Nagel wrote: > Your login path must be accessable to anonymous users. > >        - { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY } >        

Re: [symfony-users] FOS/UserBundle too many redirect problem

2011-05-13 Thread Tim Nagel
Your login path must be accessable to anonymous users. - { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/login_check$, role: IS_AUTHENTICATED_ANONYMOUSLY } # for the case of a failed login t On Sat, May 14, 2011 at 10:08, Zolzaya Erdenebaatar wrote: > Hi guys

[symfony-users] FOS/User too many redirect problem

2011-05-13 Thread user123
Hi guys, I'm trying to use FOS/UserBundle. I'm done installation and when go to * http://app/web/app_dev.php/login* I get following error: The webpage at *http://app/web/app_dev.php/login* has resulted in too many redirects. Clearing your cookies for this site or allowing third- party cookies may f

[symfony-users] FOS/UserBundle too many redirect problem

2011-05-13 Thread Zolzaya Erdenebaatar
Hi guys, I'm trying to use FOS/UserBundle. I'm done installation and when go to * http://app/web/app_dev.php/login* I get following error: The webpage at *http://app/web/app_dev.php/login* has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fi

[symfony-users] Re: Security : add custom AuthenticationProvider [SF2]

2011-05-13 Thread Matt
Hi, What I suggest you is to take a look at the FOSFacebookBundle on github. They implement their own AuthenticationProvider (FacebookAuthenticationProvider) and other security related stuff. You can take your inspiration from there, there is

Re: [symfony-users] [Symfony2] NotFoundHttpException no longer caught/handled in prod environment?

2011-05-13 Thread Carl
I'm using the current master branch. Until I added the init() function found in the SE to my AppKernel class, the raw PHP error was being displayed instead of the exception being intercepted, which is rather troubling in a production environment. I've made certain to clear my cache, rebuild my

Re: [symfony-users] Custom message with @assert:Type()

2011-05-13 Thread Christophe COEVOET
Le 13/05/2011 21:25, thesaint a écrit : I have tried to annotate one of my properties as follows: /** * @assert:Type( type = "integer" , message = "Please insert a number") */ protected $size; But when I enter the invalid string "aaa5" in my form and validate, I get the error message "The v

Re: [symfony-users] [Symfony2] NotFoundHttpException no longer caught/handled in prod environment?

2011-05-13 Thread Christophe COEVOET
Le 13/05/2011 22:13, Carl a écrit : This probably isn't incredibly new behavior but I just recently updated to the latest master of Symfony2 and I noticed that NotFoundHttpException is no longer caught when it's thrown unless I use the dev environment.. I just get a blank white page instead. I'

[symfony-users] Re: Invalid Schema error during quickstart with 2.0.0beta1

2011-05-13 Thread Greg
Hrm. Tried the zip. Still getting "[ERROR 3070] CT 'container': The content model is not determinist" for services-1.0.xsd - line 20, column 0. Deleted the whole webroot and extracted again. No good. Moved to a different vhost, still the same error. Looks like something is unique on my system or th

[symfony-users] [Symfony2] NotFoundHttpException no longer caught/handled in prod environment?

2011-05-13 Thread Carl
This probably isn't incredibly new behavior but I just recently updated to the latest master of Symfony2 and I noticed that NotFoundHttpException is no longer caught when it's thrown unless I use the dev environment.. I just get a blank white page instead. I've tried to keep up with the changes

[symfony-users] Re: Re : Re: Form : check if it is a new record

2011-05-13 Thread Christophe Willemsen
Thanks winzou On 13 mai, 21:21, winzou wrote: > Depends on your application, but usually you should be able to use the > assertion `null !== $entity->getId()` -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message

[symfony-users] Custom message with @assert:Type()

2011-05-13 Thread thesaint
I have tried to annotate one of my properties as follows: /** * @assert:Type( type = "integer" , message = "Please insert a number") */ protected $size; But when I enter the invalid string "aaa5" in my form and validate, I get the error message "The value is invalid" instead of the configured m

[symfony-users] Re : Re: Form : check if it is a new record

2011-05-13 Thread winzou
Depends on your application, but usually you should be able to use the assertion `null !== $entity->getId()` -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "s

[symfony-users] Re: Form : check if it is a new record

2011-05-13 Thread Christophe Willemsen
That's overkill !! But I don't want to access this data in the template but in the FormType class. On 13 mai, 20:40, thesaint wrote: > I've asked a similar question here (https://groups.google.com/group/ > symfony-users/browse_thread/thread/aadd88b1f1557f56 ). The best way > IHMO is to generate t

[symfony-users] Re: Form : check if it is a new record

2011-05-13 Thread thesaint
I've asked a similar question here (https://groups.google.com/group/ symfony-users/browse_thread/thread/aadd88b1f1557f56 ). The best way IHMO is to generate the form action URL in the controller and assign it to the template. On 13 Mai, 19:46, Christophe Willemsen wrote: > Hey Bernhard, > > Thank

[symfony-users] Re: [Symfony2] Form : check if it is a new record

2011-05-13 Thread Christophe Willemsen
Hey Bernhard, Thanks for your reply, I was looking for an equivalent of the $this- >isNew() method in the sf1.4 forms. As this method is an Active Record method, I guess it is no more available for Doctrine2 ? Grtz On 13 mai, 19:25, Bernhard Schussek wrote: > 2011/5/13 Christophe Willemsen : >

[symfony-users] Re: Trigger login event

2011-05-13 Thread Michael
Hi Christophe can you give me a quick example how to run it from within a controller? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To

[symfony-users] [symfony2] how to manage submission of form with a FOSUserBundle UserFormType subform?

2011-05-13 Thread Francesco Levorato
Hi all, reading the documentation for embedded forms here [1], I can't seem to find a clean way to handle submission of a subform for my scenario. I have a Goal form with a subform FOS\UserBundle\Form\UserFormType. This is done to let the user input a goal and register at the same time. I am havin

Re: [symfony-users] [Symfony2] Form : check if it is a new record

2011-05-13 Thread Bernhard Schussek
2011/5/13 Christophe Willemsen : > What's the best way in the form type class to verify if it is a new > form or an update form ? You can't, you can only do so in listeners to the *SetData events. What are you trying to achieve? Bernhard -- If you want to report a vulnerability issue on symfony

Re: [symfony-users] doctrine2 numRows

2011-05-13 Thread sergio
I thought that, but then I need to do two access to the DB each time. Enviado desde mi dispositivo BlackBerry® -Original Message- From: Marco Pivetta Sender: symfony-users@googlegroups.com Date: Fri, 13 May 2011 18:35:52 To: Reply-To: symfony-users@googlegroups.com Subject: Re: [symfony

Re: [symfony-users] doctrine2 numRows

2011-05-13 Thread Marco Pivetta
As far as I know, that is not supported by all vendors (see SQLite), thus not by Doctrine 2. You will have to add a COUNT() somewhere :) Marco Pivetta @Ocramius http://marco-pivetta.com On 13 May 2011 18:33, SergioAlbatronic wrote: > Hi, can someone tell me how I

[symfony-users] doctrine2 numRows

2011-05-13 Thread SergioAlbatronic
Hi, can someone tell me how I can know the number of rows in a query. Like mysql_num_rows() function. Thanks in advance. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Goo

[symfony-users] [Symfony2] Form : check if it is a new record

2011-05-13 Thread Christophe Willemsen
Hello guys, What's the best way in the form type class to verify if it is a new form or an update form ? 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 because you are subscribed to the

Re: [symfony-users] Is there any way to retrieve UserId from current user in Symfony 2?

2011-05-13 Thread Christophe COEVOET
Le 13/05/2011 11:29, [BLZ]梁振警 a écrit : I'm using the build-in in_memory provider The in_memory provider does *not* use the database. And the user coming from it don't have an id. the are identified through their username. -- Christophe | Stof -- If you want to report a vulnerability issue on

Re: [symfony-users] Problem with doctrine:generate:entities

2011-05-13 Thread Christophe COEVOET
Le 13/05/2011 16:28, arnobeck.sdv a écrit : Hello, When I want to generate doctrine entities, with this command : ./ console.sh doctrine:generate:entities SdvMonitoringBundle I get this error : [RuntimeException] Bundle "SdvMonitoringBundle" does not contain any mapped entities. But in my Bu

[symfony-users] Problem with doctrine:generate:entities

2011-05-13 Thread arnobeck.sdv
Hello, When I want to generate doctrine entities, with this command : ./ console.sh doctrine:generate:entities SdvMonitoringBundle I get this error : [RuntimeException] Bundle "SdvMonitoringBundle" does not contain any mapped entities. But in my Bundle Ressources/conf/ folder, I have files like

Re: [symfony-users] Is there any way to retrieve UserId from current user in Symfony 2?

2011-05-13 Thread [BLZ] 梁振警
I'm using the build-in in_memory provider 2011/5/9 oscar balladares : > Yep. That is the Deal as Chris said. What provider are you using?? > Providers are set in app/config/security.yml > something like: > security: > encoders: #you should have something here as well. > providers: >

[symfony-users] Re: [Symfony2] Embedding forms and errors not working as expected

2011-05-13 Thread John Wards
Okay after speaking to Ryan Weaver about this, it seems that I hadn't done anything stupid. So after debugging for a while I've put together this pull to fix: https://github.com/symfony/symfony/pull/934 On Fri, May 13, 2011 at 2:27 PM, John Wards wrote: > Okay I've put together a Bundle to demo

[symfony-users] Stop validation after first assert if it's false

2011-05-13 Thread chafik
Hello, I'm creating my forms for my application based on my entities. I'm wondering if it is possible to stop validation when one rule is not verified. For example, this is an attribute of one of my entities : /** * @orm:Column(type="string", length="100") * @assert:NotNull * @

[symfony-users] Re: Security : add custom AuthenticationProvider [SF2]

2011-05-13 Thread Jimmy Bourassa
> Ok, I missed your point. Implementing your own AuthenticationProvider is > one of the most advanced thing in the security component. Thus, I don't > think you need it for an Ldap authentication. The good interface would > be UserProviderInterface IMO. > You should probably look athttps://github.c

Re: [symfony-users] Trigger login event

2011-05-13 Thread Christophe COEVOET
Le 13/05/2011 16:29, Michael a écrit : I'm using the latest Symfony2 code and already got the build-in form login to work. Now I need a way to trigger an event that will log a new user right after validating the registration form. Any ideas how to do it? The Security component still provide it.

[symfony-users] Trigger login event

2011-05-13 Thread Michael
I'm using the latest Symfony2 code and already got the build-in form login to work. Now I need a way to trigger an event that will log a new user right after validating the registration form. Any ideas how to do it? -- If you want to report a vulnerability issue on symfony, please send it to se

[symfony-users] Re: Highlighting menu based on controller called

2011-05-13 Thread Carl
That's perfect! Thanks. :D -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroup

Re: [symfony-users] Re: Deal with Doctrine - Migrations y Git

2011-05-13 Thread Jeremiah Dodds
On Fri, May 13, 2011 at 2:52 AM, Fran wrote: > Thanks for answering, > Yes, each developer works in his own database in his dev machine. The > problem is that if we are in migrate version 30 for example and each > developer makes changes in the database, each developer would have > migrate versio

[symfony-users] Re: [Symfony2] Highlighting menu based on controller called

2011-05-13 Thread Filipe La Ruina
I ended up putting a variable in the view indicating the menu that should be highlighted. So now my tests are if (menu == 'foo') Still, I think it is not good, will look for a better way in the future (like knowing in the view the controller that was called?) -- If you want to report a vulnerab

Re: [symfony-users] Annotations vs Yaml - which is recommended?

2011-05-13 Thread Christophe COEVOET
Le 13/05/2011 15:40, keymaster a écrit : Are there any advantages of one over the other, or is it totally a matter of personal taste? you choose what you want. It is a matter of taste. -- Christophe | Stof -- If you want to report a vulnerability issue on symfony, please send it to security

[symfony-users] sfWidgetFormSelectDoubleList always required

2011-05-13 Thread filip11
Hi, I am trying to use sfWidgetFormSelectDoubleList but always having required error altough I am picking some rows. I am doing like this: $choices = $this->prepareMailingList(); $widget = new sfWidgetFormChoice(array( 'expanded' => true, 'multiple' => true,

Re: [symfony-users] Annotations vs Yaml - which is recommended?

2011-05-13 Thread Marco Pivetta
Annotations are easier to understand while working with your PHP classes, but they also don't give you a global overview of the code while working (you don't see all references on one file). Annotations have also a pitfall when it comes to performance, as the AnnotationReader needs to cache stuff,

[symfony-users] Annotations vs Yaml - which is recommended?

2011-05-13 Thread keymaster
Are there any advantages of one over the other, or is it totally a matter of personal taste? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" g

[symfony-users] deployment

2011-05-13 Thread Hamza Tlili
hi I am getting this error - Unknown record property / related component "permissions" on "sfGuardUser", referer - in my error_log when I attempt to login to my symfony 1.4 app after deployment. I do not get it on my local machine. When I submit the login form, Symfony throws a 500 error. If I ref

[symfony-users] [Symfony2] Embedding forms and errors not working as expected

2011-05-13 Thread John Wards
Okay I've put together a Bundle to demonstrate the problem I am having. https://github.com/johnwards/FormDemoBundle Basically if you try and submit the Embedded form all blank it won't be valid but the errors won't show. If you submit the Account or Researcher form all blank, the errors display a

Re: [symfony-users] Re: Invalid Schema error during quickstart with 2.0.0beta1

2011-05-13 Thread Christophe COEVOET
Le 13/05/2011 15:02, Greg a écrit : Standard download from http://symfony.com/download and when that install did not work replaced the libraries by pulling from https://github.com/symfony/symfony.git Someone just told me on IRC today that the tgz file seems to be corrupted. Use the zip archive i

Re: [symfony-users] Re: [sf2] Disable WDT

2011-05-13 Thread Paul Dugas
I ended up asking the dev list and was directed to http://symfony.com/doc/current/book/internals/profiler.html. I ended up with the following in my app/config/config_dev.yml. framework: router: { resource: "%kernel.root_dir%/config/routing_dev.yml" } #profiler: { only_exceptions: false

[symfony-users] Re: Invalid Schema error during quickstart with 2.0.0beta1

2011-05-13 Thread Greg
Standard download from http://symfony.com/download and when that install did not work replaced the libraries by pulling from https://github.com/symfony/symfony.git On May 12, 10:22 am, Christophe COEVOET wrote: > Le 12/05/2011 15:03, Greg a crit :> I should also mention that I tried > pulling Sy

Re: [symfony-users] [symfony2] Twig and empty date

2011-05-13 Thread Sylvain Com-Océan
2011/5/13 Christophe COEVOET > Le 13/05/2011 14:31, Sylvain > Com-Océan a écrit : > > > > Le 13 mai 2011 14:29, Sylvain > Com-Océan a > écrit : > >> 2011/5/13 Christophe COEVOET >> >>> Le 13/05/2011 12:25, Sylvain > Com-Océan a écrit : >>> >>> Hi, >>> >>> I have a date field for an object (a

[symfony-users] Re: How change error message in repeated form???

2011-05-13 Thread elcabong
Fellows, I see DefaultValidator: namespace Symfony\Component\Form\Extension\Core\Validator; use Symfony\Component\Form\FormInterface; use Symfony\Component\Form\FormValidatorInterface; use Symfony\Component\Form\FormError; class DefaultValidator implements FormValidatorInterface { public fu

Re: [symfony-users] [symfony2] Twig and empty date

2011-05-13 Thread Christophe COEVOET
Le 13/05/2011 14:31, Sylvain > Com-Océan a écrit : Le 13 mai 2011 14:29, Sylvain > Com-Océan > a écrit : 2011/5/13 Christophe COEVOET mailto:s...@notk.org>> Le 13/05/2011 12:25, Sylvain > Com-Océan a écrit : Hi, I have a date f

Re: [symfony-users] [symfony2] Twig and empty date

2011-05-13 Thread Sylvain Com-Océan
Le 13 mai 2011 14:29, Sylvain > Com-Océan a écrit : > 2011/5/13 Christophe COEVOET > >> Le 13/05/2011 12:25, Sylvain > Com-Océan a écrit : >> >> Hi, >> >> I have a date field for an object (a doctrine entity) which can be empty. >> >> When I display this field with a date filter on an empty dat

Re: [symfony-users] [symfony2] Twig and empty date

2011-05-13 Thread Sylvain Com-Océan
2011/5/13 Christophe COEVOET > Le 13/05/2011 12:25, Sylvain > Com-Océan a écrit : > > Hi, > > I have a date field for an object (a doctrine entity) which can be empty. > > When I display this field with a date filter on an empty date, I got > 11/30/-0001 > {{ project.deadline|date("m/d/Y") }} >

Re: [symfony-users] Re: Security : add custom AuthenticationProvider [SF2]

2011-05-13 Thread Christophe COEVOET
Le 13/05/2011 13:30, Jimmy Bourassa a écrit : On May 13, 4:00 am, Christophe COEVOET wrote: Define it as a service and configure the provider using the id of you service: security: providers: custom: id: my_custom_provider -- Christoph

Re: [symfony-users] Re: creating utf8 tables

2011-05-13 Thread Καρακούσης Απόστολος
as Christophe says, you should simply replace UTF-8 with utf8 and it should work! On May 13, 2011, at 1:31 PM, Christophe COEVOET wrote: > Le 13/05/2011 12:06, davidj a écrit : >> OK, it seems that a bug in doctrine dbal configuration parsing is >> under review by fabpot. >> I keep commenting o

[symfony-users] [Symfony2] Doctrine2 error under Symfony2 (which is not happening under Doctrine2 alone)

2011-05-13 Thread Καρακούσης Απόστολος
I'm crossposting this from Doctrine-users list since the error happens under Symfony2 and not under Doctrine2 I am using both Doctrine2 and Symfony2 but Symfony2 fails me at a task I am able to accomplish in Doctrine2 (the 'standalone' version). /*-- In Doctrine2: --

[symfony-users] Re: Security : add custom AuthenticationProvider [SF2]

2011-05-13 Thread Jimmy Bourassa
On May 13, 4:00 am, Christophe COEVOET wrote: > > Define it as a service and configure the provider using the id of you > service: > > security: >          providers: >                   custom: >                             id: my_custom_provider > > -- > Christophe | Stof I'm affraid that's for

Re: [symfony-users] [symfony2] Twig and empty date

2011-05-13 Thread Christophe COEVOET
Le 13/05/2011 12:25, Sylvain > Com-Océan a écrit : Hi, I have a date field for an object (a doctrine entity) which can be empty. When I display this field with a date filter on an empty date, I got 11/30/-0001 {{ project.deadline|date("m/d/Y") }} # display : 11/30/-0001 Maybe this can be fi

Re: [symfony-users] Re: creating utf8 tables

2011-05-13 Thread Christophe COEVOET
Le 13/05/2011 12:06, davidj a écrit : OK, it seems that a bug in doctrine dbal configuration parsing is under review by fabpot. I keep commenting on http://groups.google.com/group/symfony-users/browse_thread/thread/a58464ca7c946a Your issue is not a bug. It is the Doctrine expected behavior as I

[symfony-users] [symfony2] Twig and empty date

2011-05-13 Thread Sylvain Com-Océan
Hi, I have a date field for an object (a doctrine entity) which can be empty. When I display this field with a date filter on an empty date, I got 11/30/-0001 {{ project.deadline|date("m/d/Y") }} # display : 11/30/-0001 Maybe this can be fix in Twig (?). But even it is normal, how can I test i

[symfony-users] Re: AuthenticationEntryPoint questions

2011-05-13 Thread Dirk Louwers
Hi Vincent, Thanks for taking the time to read my post. At first I tried access_denied_url and access_denied_handler as well, but I noticed they weren't getting called when requesting paths for which I had insufficient credentials. I am still not sure what the access_denied_handler is for. That

[symfony-users] Re: creating utf8 tables

2011-05-13 Thread davidj
OK, it seems that a bug in doctrine dbal configuration parsing is under review by fabpot. I keep commenting on http://groups.google.com/group/symfony-users/browse_thread/thread/a58464ca7c946a On May 13, 9:58 am, Christophe COEVOET wrote: > Le 13/05/2011 08:59, davidj a crit : > > > > > > > > > W

Re: [symfony-users] AuthenticationEntryPoint questions

2011-05-13 Thread Vincent Lechemin
I'm not sure if it is the right way either, but my way to do this is to define a custom path for 403 errors, security: access_denied_url: /error/403 and then use the custom controller to handle the wanted behavior. -- Vincent -- If you want to report a vulnerability issue on symfony, please

Re: [symfony-users] Security : add custom AuthenticationProvider [SF2]

2011-05-13 Thread Christophe COEVOET
Le 13/05/2011 06:10, Jimmy Bourassa a écrit : Hi, I am all new to Symfony2. I am trying to use the built-in authentification with the form firewall with LDAP authentification. If I am not mistaken, all I have to do is create my own AuthentificationProvider and make Symfony use it instead of the

Re: [symfony-users] creating utf8 tables

2011-05-13 Thread Christophe COEVOET
Le 13/05/2011 08:59, davidj a écrit : Working on Symfony2 b1 with vendors Basic install I create an Entity/User in the demo bundle like described in doc/ current/book/doctrine/orm.html DBAL / ORM settings are : doctrine: dbal: driver: %database_driver% host: %databas

Re: [symfony-users] How do I set a field value on a form?

2011-05-13 Thread Christophe COEVOET
Le 13/05/2011 09:14, user123 a écrit : According to framework doc http://symfony.com/doc/2.0/book/forms.html#embedded-forms I can't set field value on a form. The reason on my form I have a drop down list /one-to-one relation/. My question is how to set field values by manually. I can't use $fo

[symfony-users] How do I set a field value on a form?

2011-05-13 Thread user123
According to framework doc http://symfony.com/doc/2.0/book/forms.html#embedded-forms I can't set field value on a form. The reason on my form I have a drop down list /one-to-one relation/. My question is how to set field values by manually. I can't use $form->setData() method? -- If you want to

[symfony-users] AuthenticationEntryPoint questions

2011-05-13 Thread Dirk Louwers
Hi, Recently I had to override default behavior when access was denied to a user. This works fine by specifying an AuthenticationEntryPointInterface implementation. However, I still need the default behavior in certain cases. I have a couple of questions regarding this: 1) Is there some way to ha

[symfony-users] Re: Deal with Doctrine - Migrations y Git

2011-05-13 Thread Fran
Thanks for answering, Yes, each developer works in his own database in his dev machine. The problem is that if we are in migrate version 30 for example and each developer makes changes in the database, each developer would have migrate version 31 and when we merge the branches we have to fix this "

[symfony-users] Security : add custom AuthenticationProvider [SF2]

2011-05-13 Thread Jimmy Bourassa
Hi, I am all new to Symfony2. I am trying to use the built-in authentification with the form firewall with LDAP authentification. If I am not mistaken, all I have to do is create my own AuthentificationProvider and make Symfony use it instead of the built in one (Dao one I figure). Coding the act

[symfony-users] creating utf8 tables

2011-05-13 Thread davidj
Working on Symfony2 b1 with vendors Basic install I create an Entity/User in the demo bundle like described in doc/ current/book/doctrine/orm.html DBAL / ORM settings are : doctrine: dbal: driver: %database_driver% host: %database_host% dbname: %database_name%

[symfony-users] Re: Highlighting menu based on controller called

2011-05-13 Thread waters
I am using MenuBundle to do exactly this. If you follow the documentation and create a MainMenu class and include it in a template, then within a controller you can access the menu and tell it which menu item should be current. This way the current item is set before the menu is rendered. For ex

[symfony-users] creating utf8 tables

2011-05-13 Thread davidj
Working on Symfony2 b1 with vendors Basic install I create an Entity/User in the demo bundle like described in doc/ current/book/doctrine/orm.html DBAL / ORM settings are : doctrine: dbal: driver: %database_driver% host: %database_host% dbname: %database_name%