[symfony-users] FormFilter, Validators and Errors

2010-10-29 Thread Simone Fumagalli
Ciao. Hello, I've a FormFilter with this widget 'name' = new sfWidgetFormFilterInput(), and this validator $this-setValidator('name', new sfValidatorSchemaFilter('text', new sfValidatorString(array( 'required' = false, 'min_length' = 4; If I insert a string with less then 4

[symfony-users] Doctrine, I18N behavior and migrations.

2010-08-30 Thread Simone Fumagalli
Hello. In my project I've some tables with the doctrine I18N behavior. When I create the initial migration everything is fine but at the first change Symfony also add a drop for the table language in the up method. Due there are no model languages when I run doctrine:migrate I get an error

[symfony-users] Re: Help with doctrine SQL

2010-05-24 Thread Simone Fumagalli
On May 24, 6:20 pm, Philipp Mohrenweiser phi...@googlemail.com wrote: Not a collection ? so you should probably use a limit 1 statement ... but if you  want to get back multiple entrys the collection should be the right thing !? As you can see I've SUM in my select so I want an object with

[symfony-users] sfLive contest winner ...

2010-02-19 Thread Simone Fumagalli
I remember there was a sort of contest for the best review/picture/ tweet during the sfLive 2010 can we have the links for reviews and the photo ? Thanks -- Simone -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send

[symfony-users] OpenID Server

2010-01-25 Thread Simone Fumagalli
Hello everybody, I'm looking for an OpenID server to setup an internal SSO system. I'm wondering if is there an OpenID Server based on Symfony, I searched the web but no luck. Anybody knows ? Thanks -- Simone -- You received this message because you are subscribed to the Google Groups

[symfony-users] action added at the end of my links in the admin

2009-11-26 Thread Simone Fumagalli
Hello. I'm on symfony 1.4DEV I don't understand why I get the word action at the end of my links. I've for instance added this in generator.yml for my module Sender [...] config: actions: ~ list: display: [id, company, name, surname, email] actions:

[symfony-users] Re: Extending sfDoctrineGuard in 1.3

2009-11-04 Thread Simone Fumagalli
I have figured out that the url should be http://yourhost/backend_dev.php/sfGuardUser but now I get this error: The route sf_guard_user_collection does not exist. In settings.yml did you enable the sfGuardUser module for your environment ? all: .settings: enabled_modules:

[symfony-users] Re: Extending sfDoctrineGuard in 1.3

2009-11-04 Thread Simone Fumagalli
Yes: all:   .settings:     enabled_modules:        [default, sfGuardUser, sfGuardGroup, sfGuardPermission] Did you ./symfony cc ? -- Simone --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users

[symfony-users] Customize Doctrine_Collection display ?

2009-10-30 Thread Simone Fumagalli
Hello, I was just playing with a test project. The Schema is this one: BlogPost: columns: title: { string(45) } body: { clob(65535) } author: { string(255) } Tag: columns: name: { string(255) } BlogPostTag: columns: blog_post_id: type: integer

[symfony-users] Re: Doctrine - Database migration version

2009-10-27 Thread Simone Fumagalli
Just realized now that there is a table called migration_version with the active version for the DB. Would be nice to have a command like /symfony doctrine:migrate-active- version Ciao -- Simone --~--~-~--~~~---~--~~ You received this message because you are

[symfony-users] Custom fixtures for migrations

2009-10-27 Thread Simone Fumagalli
Is there a way to specify fixtures to use when my database migrate from version N to M ? Let's say migrating to version M from version N add a table to my database, I would like to specify a fixtures to add data in that table. Regards. -- Simone

[symfony-users] Doctrine - Database migration version

2009-10-26 Thread Simone Fumagalli
I've just entered the migrations world. Everything is clear to me ... the only thing I haven't realized yet is how do I get the version for the database in my project ? Regards -- Simone --~--~-~--~~~---~--~~ You received this message because you are subscribed

[symfony-users] sfDoctrineGuardPlugin UserProfile and one to one relation.

2009-10-22 Thread Simone Fumagalli
I'm using sfDoctrineGuardPlugin and I'm trying to access my user detail in this way (In my view) echo $sf_user-getGuardUser()-getUserInfo()-getFirstName(); but I get this error Fatal error: Call to undefined method Doctrine_Collection::getFirstName () if I write $myUser =

[symfony-users] Access sfWebRequest in View

2009-10-19 Thread Simone Fumagalli
Hello. Ho do I access sfWebRequest in my view file ? I want to write something like Your referral is : ?php echo $request-getReferer()) ? thanks -- Simone --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony

[symfony-users] Open custom DB connection at runtime

2009-09-30 Thread Simone Fumagalli
Hello. Scenario - I have an application with a main database which contain information about my customers and other system related information. Once the user login, depending on his grant, he can decide on which customer/DB he want to work. The logged user can switch

[symfony-users] Re: Custom view_class

2009-09-30 Thread Simone Fumagalli
Ciao Daniel. The application I'm working on it allow user to create HTML templates with few dynamic part on them. These dynamic part will be inserted with special syntax by the user and then with my custom view_class I'll create a PHP template. What do you think ? It's a good way to use custom

[symfony-users] Custom view_class

2009-09-29 Thread Simone Fumagalli
Hello I'm trying to override sfPHPView because I need few more features. I've created my new class sfMYView and saved it in a file called sfMYView.class.php. Then I've added these lines to my_module/config/module.yml all: enabled:true view_class: sfMY

[symfony-users] Re: Custom view_class

2009-09-29 Thread Simone Fumagalli
I hate when I forget these basic things !!! a symfony cc solved everything ! Thank you Gabor ! -- Simone --~--~-~--~~~---~--~~ 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] Different validation for update/insert

2009-09-23 Thread Simone Fumagalli
Hello. I need two different validations for my form. The scenario is quite easy. 1) The user subscribe to the site by providing few fields (name and email), others data are optionals. 2) The user get an email with an invitation to complete his data, in this case almost all the fields are

[symfony-users] Re: Component- Templating

2009-09-22 Thread Simone Fumagalli
The templating component will be used in Symfony 2 for the view. It's not used by symfony 1. Too bad :( It's not possible to plug it somehow in 1.3 so that I can easily port my templates to 2.0 in the future ? -- Simone --~--~-~--~~~---~--~~ You received this

[symfony-users] Component- Templating

2009-09-21 Thread Simone Fumagalli
Hello. I've used Symfony for a couple of projects a couple of years ago so now my symfony knowledge is a bit rusty. I was investigating th new features for a new project I've to start and I saw components (http://components.symfony-project.org) My questions is: Templating components is used to