[symfony-users] Re: Reusing code inside Schema.yml

2009-04-08 Thread Geoffrey Bachelet
Hi Robin, depending on what your fields are exactly, you may use doctrine templates, that is things you include in your schema through the "actAs" statement: TableA: actAs: [ column3 ] columns: Column 1: Column 2: Column 4: TableB: actAs: [ column3 ] columns: Column 5:

[symfony-users] Re: form framework: get the request object

2009-02-18 Thread Geoffrey Bachelet
$request = sfContext::getInstance()->getRequest(); On Wed, Feb 18, 2009 at 6:41 PM, ckemmler wrote: > > Nope. That, unfortunately doesn't work. I'm told the forms framework > is a recent addition, and it doesn't behave as the other parts of the > Symfony... > > On Feb 18, 6:12 pm, Martino Piccin

[symfony-users] Re: Problem with Symfony 1.2

2008-12-12 Thread Geoffrey Bachelet
try this: if (in_array(2, $arr->getRawValue())) On Fri, Dec 12, 2008 at 5:31 PM, Matias wrote: > > It work!!. But now I have another problem: > If I declare a variable in an action, for example : > > $this->arr = array(1,2,3,4); > > then in the template i used to do > > if(in_array(2, $arr)) >

[symfony-users] Re: Problem with Symfony 1.2

2008-12-12 Thread Geoffrey Bachelet
Hi, you can pass ESC_RAW as the last argument of your getter, eg: echo $object->getContent(ESC_RAW); On Fri, Dec 12, 2008 at 4:22 PM, Matias wrote: > > I just found one solution, set escaping_strategy to 'off' in the > settings.yml. > > escaping_strategy: 'off' > > On 12 dic, 12:03, Matia

[symfony-users] Re: How to get all applications?

2008-11-18 Thread Geoffrey Bachelet
something like: $applications = sfFinder::type('dir')->maxdepth(0)->relative()->in(sfConfig::get('sf_apps_dir')); could do the trick On Tue, Nov 18, 2008 at 3:21 PM, sepp <[EMAIL PROTECTED]> wrote: > > Hi @all. > > I'm writing some Symfony tasks and I'm wondering how I can get the > names of al

[symfony-users] Re: Can I install Symfony 1.0.x and 1.1.x and 1.2.x in the same server

2008-11-05 Thread Geoffrey Bachelet
http://trac.symfony-project.org/wiki/InstallingMultipleVersionsOfSymfonyanyone ? On Wed, Nov 5, 2008 at 3:19 AM, James <[EMAIL PROTECTED]> wrote: > http://groups.google.com/group/symfony-users/msg/3fedd9a4e5477cf0?pli=1 > > > On Nov 4, 2008, at 8:23 PM, Reynier Perez Mira wrote: > > > yes you can

[symfony-users] Re: What the character "~" means in schema.yml file

2008-10-17 Thread Geoffrey Bachelet
Hi, the ~ in yaml means null, that means that your field has no value, and in your case, inherits the default values for fields detected as a primary key (which is the case for fields named "id") fields created_at and updated_at are detected as timestamp, and therefor inherits the default values f