[symfony-users] Re: conditional validation

2008-02-15 Thread forkmantis
Gergo, This snippet should help you out: http://www.symfony-project.org/snippets/snippet/232 On Feb 15, 4:39 am, pihentagy <[EMAIL PROTECTED]> wrote: > Hi all! > > I need something conditional validation for the following: > There is a register form in my app, and after registration, you can >

[symfony-users] Re: Versioning many-to-many relations

2008-02-15 Thread Francois Zaninotto
hm, I should have read your first email with more attention, it makes sense... So we're back to your original question. I can see a few shortcomings: - If the middle class is versioned, version numbers don't mean anything there. Adding an author adds a record, changing an author probably adds and

[symfony-users] Re: adding extra to sf_gurad_group

2008-02-15 Thread Georg Sorst
I've run into this problem before on some occasions (not related to sfGuard) so I guess your solution should help. However, shouldn't symfony be able to resolve sf_guard_group_id to sf_guard_group:id? Any idea what's the issue? Cu, Georg Kiril Mitev schrieb: > By replacing the field > > sf_guar

[symfony-users] Re: Extending a plugin -- this or parent?

2008-02-15 Thread Georg Sorst
Hey everyone, actually, according to http://us3.php.net/manual/en/language.oop5.paamayim-nekudotayim.php parent::firstDayOfWeek is correct for accessing a non-static method in the parent class. The problem might be that 'firstDayOfWeek()' is available as as static function from sfTime and as a c

[symfony-users] Re: Versioning many-to-many relations

2008-02-15 Thread Georg Sorst
Almost, Francois :) However, the case you described is just a many-to-one-relation. I am looking for a solution to version many-to-many-relations. The problem with these is that the related objects aren't a property of the object. Only through the relations defined in the database schema a connec

[symfony-users] Re: sfPropelActAsTaggableBehaviorPlugin: custom queries

2008-02-15 Thread forkmantis
Xavier, Thanks very much. I have installed the plugin using svn:externals, so it won't be a problem for me to grab the latest version. I guess that particular commit escaped my attention, but I'll check it out now. In my particular case this should work perfect. I need a "recent list" from on

[symfony-users] Re: Versioning many-to-many relations

2008-02-15 Thread Francois Zaninotto
Well, the the ->toVersion() method does the trick, doesn't it ? $article = new Article(); $author1 = new User(); $author1->setName('john'); $article->setAuthor($author1); $article->save(); // -> creates version 1 $author2 = new User(); $author2->setName('jane'); $article->setAuthor($author2); $a

[symfony-users] Re: Unobtrusive JavaScript Plug-In status

2008-02-15 Thread Francois Zaninotto
Yes, the plug-in relies on a trick to make PJS templates which is not very efficient - and forbids caching. I have written a native PJS support for symfony in the "routing Branch", which was intended to end up in the 1.1 source. I don't know when Fabien will integrate it, though. Without a clean

[symfony-users] Re: *schema.yml doctrine model verification?

2008-02-15 Thread sawered
Have anybody got solution ? On 29 янв, 23:59, awe <[EMAIL PROTECTED]> wrote: > Is there a way to verify my *schema.yml files and see where I am > makingDoctrineerrors? > > At the moment when something is wrong there's no way for me to know > where I went wrong so it's a bit uneasy to work that wa

[symfony-users] conditional validation

2008-02-15 Thread pihentagy
Hi all! I need something conditional validation for the following: There is a register form in my app, and after registration, you can edit your details. Some fields are not editable, and some fields are required just when registering (eg. login name and captcha). But there are plenty of common f

[symfony-users] sfGuard improvement?

2008-02-15 Thread Lee Bolding
Just been looking at sfGuard... There's a method is sfGuardGroup to retrieve all of the users in a group : getsfGuardUserGroupsJoinsfGuardUser($criteria = null, $con = null) Could we not create a more easy to remember wrapper function for this in sfGuardGroup.php such as... getUsers? Eg. pub

[symfony-users] Re: apache and symfony .htaccess issue.

2008-02-15 Thread Stefan Koopmanschap
On Feb 15, 8:31 am, "Jorge Vargas" <[EMAIL PROTECTED]> wrote: > I though about that but I didn't wanted to run thru all that. is this > the only possible solution? what's wrong with having the whole symfony > project inside the DocumentRoot? First of all, all your files will be reachable through

[symfony-users] Re: How to integerat the Zen cart shopping cart in symfony framework?

2008-02-15 Thread Tristan Rivoallan
On Fri, Feb 15, 2008 at 8:25 AM, vijay <[EMAIL PROTECTED]> wrote: > Good Question.. Still noone post to ur reply. i am the first for ur > reply.. I think noone well versed in Symfony Framework.. thats Y no > one give the right solution for U. haha nice try. This questions does not get an ans