[symfony-users] Re: How to upload a database to the production server with symfony ?

2010-02-05 Thread James Cauwelier
Yep, just mysqldump although that 's only half the story. After export, you need to import. Beste way to do this is with command line. Add following code to your export SQL file: USE `db_name`; Run following command: mysql --user=username -p /location/of/export/file.sql This will

[symfony-users] Re: sfOutputEscaperObjectDecorator with isset() ?

2010-02-05 Thread Mark Smith
No that does not work either. Even if it did, from the manual: As opposed with isset(), property_exists() returns TRUE even if the property has the value NULL. Nulls exceptions / notices are exactly what I am trying to prevent. It's kind of verbose, but the best compromise I have found is to

[symfony-users] Re: ORDER BY insists on using sort_order

2010-02-05 Thread Tom Ptacnik
Did you cleared the cache folder? In which file ddid you find the sort_order (as you said you have found it in internal symfony files...) On 4 ún, 09:29, michael hodges mhodg...@gmail.com wrote: Hello all, I'm new to Symfony.  While I've been able to figure things out as I go along, this

[symfony-users] Re: Question Regarding Forms And Their Names

2010-02-05 Thread Tom Ptacnik
Where did this form come from? Is it an admin generated form? Filter form? On 4 ún, 01:20, Darren884 darren...@gmail.com wrote: I ran into a form with this customer[amount[text] What is that [text]? And how do I apply it to other fields? I have been having issues with other fields and I

Re: [symfony-users] Re: Doctrine + PostGreSQL

2010-02-05 Thread Martin Ibarra Cervantes
hi, i like first create my schema on my DB with pgAdmin III and after with symfony doctrine:build-schema , build-model, build-forms. build-filters and i dont have problem :-) try. and this generate relations with other tables on your schema. On Mon, Jan 25, 2010 at 7:15 PM, webasker

[symfony-users] Many-to-Many with extra fields

2010-02-05 Thread Cainã
Hi everyone! I'm getting a problem with forms on Symfony 1.4, using Doctrine. I'm trying to create a form to represent this relationship on the database: Fact - FactPerson - Person As you can see, this table schema represents a many-to-many association. The problem with this association, in

[symfony-users] AJAX form fields

2010-02-05 Thread HAUSa
Right now I have two form widgets which are of the class sfWidgetFormPropelChoice. The second field has about 20 choices, but can be filtered by the first one. Is it possible in a quick and neat way to replace the all the options of the second form field by the filtered options (about 5) when a

Re: [symfony-users] How to create an totally customized admin

2010-02-05 Thread Dong YANG
Hi Augusto, Thanks for your advises, I will just begin this module. Regards, JoJo 2010/2/4 Augusto Flavio afla...@gmail.com Hi Yang, you said the you need two modules based on the same model class. One for display a graph a other to i have not idea. But ok. I, in your

[symfony-users] i18n fr_FR.dat file

2010-02-05 Thread Florian
Hi list, I have a doubt on the content of this file: in sf_lib_dir/i18n/data/fr_FR.dat there is no NegativePattern definition to handle a negative value in the format_currency function/helper ie: format_currency(-120.3, '€', 'fr_FR'); // -returns -120,30 but should return -120.30 € What do

[symfony-users] Re: Many-to-Many with extra fields

2010-02-05 Thread Thibault Jouannic
Hi, I'v you tried the embedRelation function ? in FactPersonForm, try something like configure() { $this-embedRelation('Fact'); $this-embedRelation('Person'); } And if you do so, remember to add only one primary key on the FactPerson table. Ie. you should have in you schema : FactPerson:

[symfony-users] Re: Many-to-Many with extra fields

2010-02-05 Thread Raphael Schumacher
On 5 Feb., 15:24, Cainã cainan.co...@gmail.com wrote: [...] The problem with this association, in special, is that the FactPerson table has some extra fields, apart from the fact_id and the person_id fields. How could i create such form? [...] Assuming that you did define FactPerson

[symfony-users] Re: i18n fr_FR.dat file

2010-02-05 Thread Florian
non-french users can answer too :) On 5 fév, 16:40, Florian sideral.undergro...@gmail.com wrote: Hi list, I have a doubt on the content of this file: in sf_lib_dir/i18n/data/fr_FR.dat there is no NegativePattern definition to handle a negative value in the format_currency function/helper

[symfony-users] [Routing] Question about a variable in the URL

2010-02-05 Thread HiDDeN
Hello, I have a question, is there some way to define a variable in the url part of the routing joined to a literal? An example: my_route: url: /:variable1/:variable2/literal:variable3.html When Symfony reads this, it prints literal:variable3.html as it is. Is there some other way to do it?

[symfony-users] [Routing] sfRoute::serialize() must return a string or NULL

2010-02-05 Thread HiDDeN
I'm having this error when I call this kind of route: my_route: url: /:variable1-:variable2.html param: { module: my_module, action: index } The error: 500 | Internal Server Error | Exception sfRoute::serialize() must return a string or NULL I'm using Symfony 1.4.1 (I have also tried

[symfony-users] Re: Deployment problem/bug?

2010-02-05 Thread adrianrz
Hi Augusto I've the same problem. When run on a Windows Xp enviroment symfony project:deploy production or symfony project:deploy production --go the task show exec rsync --dry-run -azC --force --...www/vhosts/mysite.com/ and stays in a loop or something, without showing anything else. At

[symfony-users] Re: Question about a variable in the URL

2010-02-05 Thread adrianrz
Hi, the .html must be defined on setting.yml as suffix and then the route would be my_route: url: /:variable1/:variable2/literal/:variable3 and the url show http://www.yoursite.com/variable1/variable2/literal/variable3.html but i hope that this variables are not so variable otherwise google

[symfony-users] Re: sfWidgetFormChoice and Foreign keys problems!

2010-02-05 Thread Tom Ptacnik
I think symfony can't know what you want to display If you don't tell it... ;) Show me your schema.yml file (at least part with Empressas specification) On 4 ún, 16:09, wueb webmaster@gmail.com wrote: On 4 Fev, 14:52, Tom Ptacnik to...@tomor.cz wrote: 1 st problem try to do:  

[symfony-users] Re: need help: Unknown method SfGuardUser::addGroupByName

2010-02-05 Thread Tom Ptacnik
Do you have got all sfGuardDoctrine tables definitions in your project schema.yml file? .. because you don't need to have them there .. they are in the schema.yml file in the plugin directory. On 5 ún, 07:07, Alter Ego sharif.she...@gmail.com wrote: I've installed sfGuardDoctrine plugin and

[symfony-users] Embedded forms and embedde relations problem

2010-02-05 Thread NOOVEO - Christophe Brun
I'm trying to use embedded forms on such a schema as : News: actAs: { Timestampable: ~ } columns: titre: { type: string(125), notnull: true } texte: { type: string() } date_News: { type: date(25), notnull: true } actif: { type: boolean, notnull: true, default: true } Book:

[symfony-users] appropriate way to insert form value before validation?

2010-02-05 Thread kris chant
I'm trying to set a value in my form, before validation, and running into problems. The value I'm setting is an account_id, which should never be known to the user, thus I don't use a hidden_input form value. I want to preserve the form validation (a sfValidatorDoctrineChoice validator that

[symfony-users] Re: appropriate way to insert form value before validation?

2010-02-05 Thread rooster (Russ)
I would pass the id as an option to the form (if the id is decided in the action, and cannot be derived from the object itself) then add the value using the updateObject() method. Since the value never enters userland, there is no real need to run it through the validators in this case, so I'd

[symfony-users] Re: appropriate way to insert form value before validation?

2010-02-05 Thread rooster (Russ)
You could also of course (instead of using a form option) populate the object before passing it to the form, or after you have bound the form, before calling save. (if you want to keep the account_id logic completely out of the form class). Russ. On Feb 5, 10:30 pm, rooster (Russ)

[symfony-users] app:clone task

2010-02-05 Thread bkuberek
Hi, I have a project which consists of one base (skeleton) application and for every new application we create we just want to duplicate the skeleton app and customize from there. Will symfony ever ship a task for cloning apps? I thought perhaps something like ./symfony app:clone base target

[symfony-users] Adding a doctrine listener from a plugin

2010-02-05 Thread Avi Block
What's the best way to add a doctrine listener from a plugin? Doctrine_Manager is being reported as not being found (which i found strange in the first place), and, to my limited understanding, the method that sfDoctrinePlugin calls, configureDoctrine, only gets called on your main project

Re: [symfony-users] app:clone task

2010-02-05 Thread Jonathan Wage
I don't think a task is required. Can't you just do: cp -r apps/frontend apps/new_app - Jon On Fri, Feb 5, 2010 at 4:33 PM, bkuberek bkube...@gmail.com wrote: Hi, I have a project which consists of one base (skeleton) application and for every new application we create we just want to

[symfony-users] Re: appropriate way to insert form value before validation?

2010-02-05 Thread kris chant
On Feb 5, 1:30 pm, rooster (Russ) russmon...@gmail.com wrote: value using the updateObject() method. Since the value never enters This is the method I'm using atm. You're right, I was expecting too much from the validators. Letting FK restraints maintain sanity further down the chain seems

[symfony-users] How to know if a user is logged in

2010-02-05 Thread ReynierPM
Hi: I need to know if a user is logged in or not from my layout.php file, is this possible? How? -- Cheers ReynierPM -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To

Re: [symfony-users] How to know if a user is logged in

2010-02-05 Thread Gábor Fási
$sf_user-isAuthenticated() On Fri, Feb 5, 2010 at 23:34, ReynierPM rper...@uci.cu wrote: Hi: I need to know if a user is logged in or not from my layout.php file, is this possible? How? -- Cheers ReynierPM -- You received this message because you are subscribed to the Google Groups

Re: [symfony-users] How to know if a user is logged in

2010-02-05 Thread Michał Piotrowski
Hi, 2010/2/5 ReynierPM rper...@uci.cu: Hi: I need to know if a user is logged in or not from my layout.php file, is this possible? How? -- Cheers ReynierPM -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send

Re: [symfony-users] How to know if a user is logged in

2010-02-05 Thread ReynierPM
On 2/5/2010 5:38 PM, Michał Piotrowski wrote: I'm using something like this ?php if ($sf_user-isAuthenticated()): ? li ?php echo link_to('Wyloguj', '@sf_guard_signout') ? /li ?php else: ? li ?php echo

Re: [symfony-users] How to know if a user is logged in

2010-02-05 Thread Eno
On Fri, 5 Feb 2010, ReynierPM wrote: Hi: I need to know if a user is logged in or not from my layout.php file, is this possible? How? http://www.symfony-project.org/jobeet/1_2/Propel/en/13#chapter_13_sub_authentication -- -- You received this message because you are subscribed to the

[symfony-users] Re: Question about a variable in the URL

2010-02-05 Thread HiDDeN
Adrianrz, look again my question please. The problem I have is in literal:variable3. On Feb 5, 7:20 pm, adrianrz adrianrz2...@hotmail.com wrote: Hi, the .html must be defined on setting.yml as suffix and then the route would be my_route:   url: /:variable1/:variable2/literal/:variable3

[symfony-users] How to properly override Doctrine_Record::delete()?

2010-02-05 Thread Darren884
Does anyone have any simple example code I can place into my objects model to override this function? I need to add some stuff into it. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to

Re: [symfony-users] Re: Deployment problem/bug?

2010-02-05 Thread Augusto Flavio
Hi Adrian, Try to run the deployment manually. Works fine. Bye. Augusto Morais -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email

[symfony-users] Routing Question

2010-02-05 Thread Shawn
I am trying to create a portfolio website and have a few questions about routing. On this site there will be 3 pages, Welcome, Projects, Contact. The Projects page will reference the projects table and models. I am cabable of creating the routing for this, however, The welcome and contact pages

Re: [symfony-users] Routing Question

2010-02-05 Thread Sid Bachtiar
Routing does not need table and model, it refers to module and action. For example for url www.mywebsite.com/welcome, in your routing.yml you would have something like: welcome: url: /welcome param: { module: default, action: welcome } On Sat, Feb 6, 2010 at 5:21 PM, Shawn

[symfony-users] Re: ORDER BY insists on using sort_order

2010-02-05 Thread michael hodges
# In which file did you find the sort_order database_interface.lib.php # Did you clear the cache First I cleared the cache, but that didn't work Second I renamed the app directory and recreated it from scratch using just my schema and fixture Even with the classes and generator files back to

[symfony-users] Re: Best Way to Redirect Old URLs

2010-02-05 Thread Jakub Zalas
Hi, usually I write .htaccess rewrites or overload error404 action in the default module. Overloading error404 is better when you need a bit more processing to calculate the target URL. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to