Re: [symfony-users] [Sf2] doctrine:schema:create

2011-03-03 Thread liuggio
I suggest to use the sandbox PR6, I got the same error with the last release, be carefull the sintax is little different. -- 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] [Sf2] doctrine:schema:create

2011-03-03 Thread Jonathan Wage
The configuration for the latest version in git should look like the following: doctrine: dbal: dbname: dbname orm: auto_generate_proxy_classes: true mappings: MainBundle: ~ - Jon On Wed, Mar 2, 2011 at 5:54 PM, liuggio liug...@gmail.com wrote: I

Re: [symfony-users] [Symfony 2] A way to load fixtures in a user defined order, taking into account associations?

2011-03-03 Thread Christophe COEVOET
Le 03/03/2011 05:45, Gustavo Adrian a écrit : Actually playing around with the interface I've noticed that the order is numbered. Given that my app actually has not a fixed number of bundles (and, for instance, of fixtures), I had to look for another way of ordering, because this way I can't

Re: [symfony-users] Integration of external PHP code in Symfony

2011-03-03 Thread raga bonds
Ah I was looking for this answer... my question never got through the moderators. Thanks! On Thu, Mar 3, 2011 at 5:35 AM, oscar balladares liebegr...@gmail.com wrote: Symfony handle it very well. If you have third party code, you should put it in yourProjectName/lib directory. Thanks to the

[symfony-users] sfWidgetFormDateRange with a Propel Form

2011-03-03 Thread Ben Bieker
Hi, I currently have the following problem: I got a form that has 2 Date fields in it. What I want to do is that the user has to specify a date range in the form. I now need a validation method that checks if the from field's date is than the to field's date, so that the user cannot specify an

Re: [symfony-users] [Symfony 2] A way to load fixtures in a user defined order, taking into account associations?

2011-03-03 Thread Gustavo Adrian
This would be only for entities that couldn't exists without its parent. In terms of fixtures, having a Country and a State, a State needs to know about its Country when its loaded, but a Country doesn't need to know about its States. Knowing this, you'd only have to modify the State fixtures

[symfony-users] Re: strating with symfony2 step by step

2011-03-03 Thread coolmec33
Thanks very much for the reply, Yes I saw the full documentation on all the links you sent me;) Now, my problem is I do not know how to start my project (I did not find it on all the documentation I read) and it do more than 2 weeks I'm looking for ... I already tried the sandbox. Now I want

[symfony-users] [Symfony2] Caching function result

2011-03-03 Thread Brocco
Hi, In my application I sometimes need to use a function which usually takes 3~4 seconds to make its job, which is quite long. With symfony 1.4, I used to cache the result of this function (which changes at most every 24 hours) with sfFunctionCache and sfFileCache. Is it possible to store some

[symfony-users] [Symfony2] How to use the remember_me option in user authentication

2011-03-03 Thread Marc Cerrato
Hi there, I have been trying to use the remember_me option when authenticating a user (form_login authentication). Everything seems to work since the response header includes a 'set-cookie' with the corresponding REMEMBERME cookie, but it doesn't appear anymore in the next requests (it only

Re: [symfony-users] [Symfony2] How to use the remember_me option in user authentication

2011-03-03 Thread Christophe COEVOET
Le 03/03/2011 12:57, Marc Cerrato a écrit : Hi there, I have been trying to use the remember_me option when authenticating a user (form_login authentication). Everything seems to work since the response header includes a 'set-cookie' with the corresponding REMEMBERME cookie, but it doesn't

Re: [symfony-users] sfWidgetFormDateRange with a Propel Form

2011-03-03 Thread Alex Pilon
http://www.symfony-project.org/api/1_4/sfWidgetFormDateRange * from_date: The from date widget (required) * to_date: The to date widget (required) These two options should be set to the widgets you'll be using for the from and to date. On Thu, Mar 3, 2011 at 06:22, Ben Bieker m...@ben-bieker.de

Re: [symfony-users] Re: strating with symfony2 step by step

2011-03-03 Thread oscar balladares
Hi again. Even Fabien Potencier don't recommends to start with the master version, he recommends the sandbox, master has still some issues. It will be fully functional on final and official and stable release. Taidehuone is right, if you want an empty project, just delete src/* and delete

[symfony-users] Re: ERP development ( SF 1.4 or 2.0 ? )

2011-03-03 Thread Thor
i don't agree with everything: actually some plugin gives a good starting point for some kind of solutions; for example if i needed a nested set for something i probably wouldn't start from scratch; anyway, i think that the plugin question is purely project-dependant: what i meant with i'd

Re: [symfony-users] Error:Call member function getDescription() in non object

2011-03-03 Thread oscar balladares
Do you have studentdocuments records on DB? Are you using Propel, right? Doctrine's defaults behavior is to return an empty array intance if database has no records; I don't know if Propel does that. If you tries to iterate (foreach) a non array instance variable you will get that error for

Re: [symfony-users] Re: ERP development ( SF 1.4 or 2.0 ? )

2011-03-03 Thread Michał Piotrowski
2011/3/3 Thor thorste...@gmail.com: i don't agree with everything: Great actually some plugin gives a good starting point for some kind of solutions; for example if i needed a nested set for something i probably wouldn't start from scratch; anyway, i think that the plugin question is

Re: [symfony-users] Re: ERP development ( SF 1.4 or 2.0 ? )

2011-03-03 Thread Gustavo Adrian
Actually there're a lot of Bundles and Doctrine extensions now (including a nested set implementation). Everyone has a different opinion on this matter. I'm using Symfony 2 for my CRM and I must say it's the best choice I made. I need the flexibility it gives you. Anyway, the only way to know is

[symfony-users] [Symfony 2] User Authentication

2011-03-03 Thread Donald
Hi, I'm working with the master branch of the Symfony 2 sandbox, and I'm trying to get user authentication to work. Obviously things have changed a great deal since the last preview release, so I'm hoping to get some pointers. I've managed to get everything setup to the point where I'm being

[symfony-users] [symfony 1.4] Retrieving Value from FormField

2011-03-03 Thread Sebastian Göttschkes
Hi, I'm currently not using FormWidgets as I got some Javascript working and some special changes in the form. I now need to get the value of a FormField, which can be either the value stored in the database (when the edit-page is viewed without a POST) or the (wrong) data submitted by the

Re: [symfony-users] [symfony 1.4] Retrieving Value from FormField

2011-03-03 Thread Alex Pilon
The way you described is using the arrayaccess interface which I believe is something that symfony takes great advantage of. I would say that is a fine way to do it. 2011/3/3 Sebastian Göttschkes sebastian.goettsch...@googlemail.com Hi, I'm currently not using FormWidgets as I got some

[symfony-users] [Symfony 2] How to inject a Service into a Form

2011-03-03 Thread Jan Eichhorn
Hi, actually i want to add an Dynamic Choice Field to a Form Object. This choices array(a = b) comes from a Service wich i've registered before. So i need to get access to this service. $options = $container-get('mysevice')-getOptions(); $this-add('options', new ChoiceField('status', array(

[symfony-users] Re: User Authentication

2011-03-03 Thread olimination
Hi, I sometimes use the master documentation on GitHub and there you find some updated documentations: https://github.com/symfony/symfony-docs greets, Oli On Mar 3, 8:38 pm, Donald chekot...@gmail.com wrote: Hi, I'm working with the master branch of the Symfony 2 sandbox, and I'm trying to

[symfony-users] [Symfony 2] Overview of configuration options

2011-03-03 Thread Sebastian Hörl
Hi, I'm playing around with Symfony2 and think it might be the best web framework I have ever used ;) Nevertheless I could not find a list with all configuration options that I could use. Maybe I have overseen something? As far as I have discovered in most cases the API documentation gives a

[symfony-users] Re: User Authentication

2011-03-03 Thread Donald
I wasn't aware that was on github. I'll go check it out immediately. Thanks! On Mar 3, 3:07 pm, olimination oliminat...@gmail.com wrote: Hi, I sometimes use the master documentation on GitHub and there you find some updated documentations: https://github.com/symfony/symfony-docs greets,

Re: [symfony-users] Error:Call member function getDescription() in non object

2011-03-03 Thread Gareth McCumskey
Your code is written in a way that totally disregards the entire mccumskey design pattern that symfony is built around. You have business logic lettering your template and controller decisions scattered in there too. I very strongly recommend you stop coding smd learn symfony-users properly with

[symfony-users] Re: User Authentication

2011-03-03 Thread Donald
Unfortunately the authentication docs there aren't updated at all. So I'm still looking for advice... On Mar 3, 3:18 pm, Donald chekot...@gmail.com wrote: I wasn't aware that was on github. I'll go check it out immediately. Thanks! On Mar 3, 3:07 pm, olimination oliminat...@gmail.com wrote:

[symfony-users] Re: How to get the realtionship column in sfDatagrid

2011-03-03 Thread Leon van der Ree
I don't know how this works for the datagrid, but there is an alternative plugin which can handle this without a problem: the sfGrid, together with the sfDataSourcePlugin: http://www.symfony-project.org/plugins/sfGridPlugin http://www.symfony-project.org/plugins/sfDataSourcePlugin It is all

Re: [symfony-users] [Symfony 2] How to inject a Service into a Form

2011-03-03 Thread Jonathan Wage
Hi, Make your form class a service prototype and then you can inject anything you want and retrieve instances of the form from DIC. Essentially the DIC becomes your form factory. - Jon On Thu, Mar 3, 2011 at 9:48 PM, Jan Eichhorn j...@pixel-web.org wrote: Hi, actually i want to add an

[symfony-users] mysql_real_escape_string

2011-03-03 Thread Laxmi
Hello How can i implement mysql_real_escape_string in symfony. I am submitting a form and by using mysql_real_escape_string i want replace special characters in database by slash. Thanks -- If you want to report a vulnerability issue on symfony, please send it to security at

Re: [symfony-users] mysql_real_escape_string

2011-03-03 Thread Alex Pilon
This sort of task should be done for you by Doctrine - assuming you are using database models and such. The question you are asking indicates that you have not done very much reading into the specifics of the framework. I would recommend you run through this tutorial

Re: [symfony-users] mysql_real_escape_string

2011-03-03 Thread oscar balladares
That function is meant to avoid html/sql injection. Symfony/Doctrine handles that by default. Alex is right, try out Jobeet tutorial. There are some guides that describes how to accept raw input data instead of escaping it. I can't remember the name of the guides, sorry. 2011/3/3 Alex Pilon

[symfony-users] Re: mysql_real_escape_string

2011-03-03 Thread Laxmi
hello Thanks for reply, Yes I am new to symfony. i just want to replace special characters with raw data while saving the data into database. I tried to use sfOutputEscaper class but no sucess. Can you please let me know which is the better class to implement it Thanks On Mar 3, 5:13 pm, oscar

[symfony-users] Re: mysql_real_escape_string

2011-03-03 Thread Laxmi
hello Thanks for reply, Yes I am new to symfony. i just want to replace special characters with raw data while saving the data into database. I tried to use sfOutputEscaper class but no sucess. Can you please let me know which is the better class to implement it Thanks On Mar 3, 4:34 pm, Alex

Re: [symfony-users] Re: How to get the realtionship column in sfDatagrid

2011-03-03 Thread Emerson Barrion
Thanks Leon!.. But upon checking the sfGridPlugin, its in alpha state at the moment [?] My temporary solution to my problem is modifying the core of sfDatagridPlugin. I know its consequences, but if ever i find a better solution or even updates to this plugin that will i eventually apply.

[symfony-users] changing register_globals without php.ini

2011-03-03 Thread charanjeet
Hello All, Is there any way to change register_globals value in symfony's configuration files? While surfing i found that doing so was possible in symfony 1 through php.yml ! I need to change register_globals value for the whole symfony project but I can not make required changes in php.ini as