[symfony-users] Re: SF2: Missing hydrators for MongoDB

2011-06-22 Thread Adrien Mogenet
Or at least mention the generate:hydrators :) On 22 juin, 12:12, Adrien Mogenet wrote: > Hi everyone, > > I was playing with Doctrine and MongoDB thanks to SF2, and I observed > that a configuration line was missing in your documentation. > >

[symfony-users] SF2: Missing hydrators for MongoDB

2011-06-22 Thread Adrien Mogenet
Hi everyone, I was playing with Doctrine and MongoDB thanks to SF2, and I observed that a configuration line was missing in your documentation. doctrine_mongodb: auto_generate_hydrator_classes: true Otherwise, lots of things won't work properly... Regards, -- If you want to report a vulner

[symfony-users] Re: Symfony2 : Query MongoDB collection

2011-06-20 Thread Adrien Mogenet
Seriously dude... I checked ; several times. Here is the version I had in my tab : http://twitpic.com/5ef73k Documentation has just been updated recently, I didn't had your version even 1 hour ago... Thanks anyway On 20 juin, 21:27, Christophe COEVOET wrote: > Le 20/06/2011 21:17

[symfony-users] Re: Symfony2 : Query MongoDB collection

2011-06-20 Thread Adrien Mogenet
I don't get it... from the documentation link I was talking about, User class was annotated with : /** @mongodb:Document(collection="users") */ I used this syntax ; you tell me this one is wrong ? On 20 juin, 21:10, Christophe COEVOET wrote: > Le 20/06/2011 21:05, Adr

[symfony-users] Symfony2 : Query MongoDB collection

2011-06-20 Thread Adrien Mogenet
Hi everyone, I'm still trying to query my MongoDB store thanks to symfony2 and Doctrine ODM. I'm following these instructions : http://symfony.com/doc/current/cookbook/doctrine/mongodb.html So I tried : $dm = $this->get('doctrine.odm.mongodb.document_manager'); $user = $dm->createQuery('find

[symfony-users] Re: Lost with Symfony2 forms

2011-02-06 Thread Adrien Mogenet
But if I'm using it with Doctrine, I don't like to see the Doctrine object definitions completely disconnected from another namespace declaration (eg Application\MyBundle\Cart\CartRequest.php and Document \Cart.php). On 6 fév, 15:59, Bernhard Schussek wrote: > Hi Adrien, > &

[symfony-users] Lost with Symfony2 forms

2011-02-06 Thread Adrien Mogenet
Hi, I'm appreciating overview of sf2 forms, but I don't understand, according to the documentation, what's the /bundle/Contact folder ? What's the strategy here ? What should be the namespace of Form classes and Domain Objects ? I can make it work, but not sure I get the good way here, with crapp

[symfony-users] Re: Desactivate Twig auto escaping ?

2011-02-06 Thread Adrien Mogenet
Or if you doing it just on a few cases : {% autoescape false %} Everything will be outputed as is in this block {% endautoescape %} On 3 fév, 10:17, stof wrote: > On Thu, 3 Feb 2011 08:57:43 +0100, Christophe Beyer > wrote: > > > Hello, > > > How can I desactivate the Twig auto escaping ? >

[symfony-users] Re: Symfony2 + Doctrine MongoDB : can't createQuery()

2011-02-02 Thread Adrien Mogenet
Using createBuilder() gave me a missing Hydrator class exception. I had to add this into my config.yml : doctrine_odm.mongodb: auto_generate_hydrator_classes: true On 1 fév, 21:47, Adrien Mogenet wrote: > Well, when I see "it works", I should say "it doesn't throw any

[symfony-users] Re: Symfony2 + Doctrine MongoDB : can't createQuery()

2011-02-01 Thread Adrien Mogenet
Well, when I see "it works", I should say "it doesn't throw any error", because this code does not retrieve any row. On 1 fév, 21:37, Adrien Mogenet wrote: > G'd evening, > Still learning Symfony2... with MongoDB ORM. I can store new records, > but when

[symfony-users] Symfony2 + Doctrine MongoDB : can't createQuery()

2011-02-01 Thread Adrien Mogenet
G'd evening, Still learning Symfony2... with MongoDB ORM. I can store new records, but when I try to retrieve my rows : $dm = $this->get('doctrine.odm.mongodb.document_manager'); $dm->createQuery(...); I got a "Class has no method" error. However : $query = $dm->createQueryBuilder('E

[symfony-users] Re: symfony2 : 3rd-party libraries

2011-02-01 Thread Adrien Mogenet
Well ; shame on me. It makes sense, yeah. Thanks for your answers. Reading PHP 5.3 specs again are helpful :) (more than reading it in early days of 5.3 alpa...) On 1 fév, 09:55, stof wrote: > On Mon, 31 Jan 2011 22:59:07 -0800 (PST), Adrien Mogenet > > wrote: > > Yes, this is

[symfony-users] Re: symfony2 : 3rd-party libraries

2011-01-31 Thread Adrien Mogenet
wrote: > Le 31/01/2011 22:30, Adrien Mogenet a crit :> I don't understand, GeSHI is > not using namespaces ! > > > But if I use  new GeSHI_Displayer, is does not work ; > > \GeSHI_Displayer does ! > > If there is no namespace it is logical. But in your previou

[symfony-users] Re: symfony2 : 3rd-party libraries

2011-01-31 Thread Adrien Mogenet
I don't understand, GeSHI is not using namespaces ! But if I use new GeSHI_Displayer, is does not work ; \GeSHI_Displayer does ! On 31 jan, 21:48, Christophe COEVOET wrote: > Le 31/01/2011 21:43, Adrien Mogenet a crit :> I moved the class within > src/vendor/geshi/GeSHI/Display

[symfony-users] Re: symfony2 : 3rd-party libraries

2011-01-31 Thread Adrien Mogenet
My mistake... it works, using \GeSHi_Displayer() :-) On 31 jan, 21:43, Adrien Mogenet wrote: > I moved the class within src/vendor/geshi/GeSHI/Displayer.php ... but > nothing happened :-x > > Class 'Application\EbBundle\Controller\GeSHi_Displayer' > > On 31 ja

[symfony-users] Re: symfony2 : 3rd-party libraries

2011-01-31 Thread Adrien Mogenet
I moved the class within src/vendor/geshi/GeSHI/Displayer.php ... but nothing happened :-x Class 'Application\EbBundle\Controller\GeSHi_Displayer' On 31 jan, 21:33, Christophe COEVOET wrote: > Le 31/01/2011 21:02, Adrien Mogenet a crit : > > > > > > > > &g

[symfony-users] symfony2 : 3rd-party libraries

2011-01-31 Thread Adrien Mogenet
Hi everyone, I'm still learning Symfony2... I added "GeSHI" as a library in src/vendor/geshi. I renamed the GeSHI class to "GeSHI_Displayer", as described in documentation PEAR naming usage (http://docs.symfony-reloaded.org/ guides/tools/autoloader.html#usage) I declared this library into the auto

[symfony-users] Symfony2 : where should images stand ?

2011-01-30 Thread Adrien Mogenet
Hi everyone, I was a "heavy" sf1.x developer, and I'm learning sf2 :) I am wondering something about paths for images. I read that web resources should stand in /src/Application/MyBundle/ Resources/public Is that right ? And thus, how do I insert my image using the {% asset( path ) %} function ?

[symfony-users] Re: What's the future of Lime2 ? (vs PHPUnit)

2010-08-23 Thread Adrien Mogenet
Thank you for that quick answer :-) Have a nice day ! -- Adrien Mogenet On 23 août, 10:37, Thomas Rabaix wrote: > On Mon, Aug 23, 2010 at 9:39 AM, Adrien Mogenet > wrote: > > > Hi all ! > > > I am designing a CI platform and I was wondering which choice should &

[symfony-users] What's the future of Lime2 ? (vs PHPUnit)

2010-08-23 Thread Adrien Mogenet
, -- Adrien Mogenet -- 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 Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegro

[symfony-users] Re: Translate lime tests into PHPUni

2010-08-23 Thread Adrien Mogenet
I finally launched my tests with Lime2 :-) On 16 août, 12:14, Adrien Mogenet wrote: > Hi everyone, > > I'm working on a old project, written with symfony 1.1. > I would like to write only PHPUnit tests, but not losing existing (and > numerous)limetests. > > Do

[symfony-users] Translate lime tests into PHPUni

2010-08-16 Thread Adrien Mogenet
Hi everyone, I'm working on a old project, written with symfony 1.1. I would like to write only PHPUnit tests, but not losing existing (and numerous) lime tests. Do you know an efficient way to translate/embed lime tests into PHPUnit ? I found sfPhpUnit2Plugin but it works only since sf 1.2. :-{

[symfony-users] Re: Fixtures with dynamic parameters ?

2010-05-24 Thread Adrien Mogenet
e this : > > >   Group_1: > >      label: My first group > >      user: > > >   Group2: > >      label: My second group > >      user: > > > And I would launch the insertion like this : > > >   `php symfony doctrine:data-load groups.yml?u

[symfony-users] Fixtures with dynamic parameters ?

2010-05-24 Thread Adrien Mogenet
p user: And I would launch the insertion like this : `php symfony doctrine:data-load groups.yml?user=XXX` Do you know if it's possible ? -- Adrien Mogenet -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received thi

[symfony-users] Can't select/validate day #31 in sfWidgetFormJQueryDate

2010-05-01 Thread Adrien Mogenet
Hi all, I just noticed a strange bug using a sfWidgetFormJQueryDate, when I tried to select the 2010-12-31, it just doesn't pass... My code : $this->widgetSchema['birth'] = new sfWidgetFormJQueryDate(array( 'image' => image_path('/pwCorePlugin/images/calendar.gif'), 'config' =

[symfony-users] Error message "No description for object of class..."

2010-02-23 Thread Adrien Mogenet
Hi all, let's consider these simple lines : foreach ($extraRows as $rowId => $extraValue) { var_dump($extraValue); $extraValue = new MemberExtraValue(); $extraValue->setValue($extraValue); //... } Well, if I print $extraValue. no problem. But in ->setValue, it tries to set "No descriptio

[symfony-users] Re: sfTestFunctional api documentation

2009-12-15 Thread Adrien Mogenet
I definitely agree with, so many times I had to investigate in order to find list of possible parameters or things like tat :-) -- Adrien On 15 déc, 15:49, Tarjei Huse wrote: > Hi, > > On 12/15/2009 03:32 PM, Alexandru-Emil Lupu wrote:> You might wanna read: > >http://www.symfony-project.org/job

[symfony-users] Symfony color scheme for Netbeans

2009-12-11 Thread Adrien Mogenet
t hesitate to comment ;-) -- Adrien Mogenet -- 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 to symfony-users+unsubscr...@g

[symfony-users] Re: Extend forms (Doctrine) with Plugins

2009-12-11 Thread Adrien Mogenet
motivation)? > > Daniel > > On 2009-12-11, at 11/December, 10:24 AM, Adrien Mogenet wrote: > > > Hi Daniel, > > > I thought about that, but second point make things impossible. If 2 > > developers want to develop 2 plugins to extend this UserForm, it won't &g

[symfony-users] Extending model within a plugin : execute SQL statements

2009-12-11 Thread Adrien Mogenet
Hi all, I'm writing a plugin, with a custom new schema.yml. Well, doctrine:build-model generates my model files. doctrine:build-sql build the SQL file in the main SQL file Is there a clever way to generate SQL statements and execute them within a plugin ? Because if I perform doctrine:insert-sq

[symfony-users] Re: Extend forms (Doctrine) with Plugins

2009-12-11 Thread Adrien Mogenet
and > BaseUserForm. > > Cheers, Daniel > > On 2009-12-11, at 11/December, 1:23 AM, Adrien Mogenet wrote: > > > Hi all, > > > In my `main` application, let say I have a UserForm.class.php to > > manage my Users. > > This `main` application has a `foobar`

[symfony-users] Extend forms (Doctrine) with Plugins

2009-12-10 Thread Adrien Mogenet
Hi all, In my `main` application, let say I have a UserForm.class.php to manage my Users. This `main` application has a `foobar` module which displays a UserForm instance. Well, I want to offers to the developers a way to extend this UserForm class by developing some plugins. Is there a clever w

[symfony-users] Issue with doctrine/forms... only in tests

2009-12-09 Thread Adrien Mogenet
Hi all, This is a part of my schema : --- association: id name : string created_by: integer relations: created_by: { class: Member, local: created_by, foreign: id } member: id username: string state: integer association_id: inte

[symfony-users] Using routes in forms

2009-12-01 Thread Adrien Mogenet
Basically generated forms look like : ? -- 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 to symfony-u

[symfony-users] Re: Doctrine: execute vs fetchArray

2009-11-28 Thread Adrien Mogenet
(sometimes, very > complex). Array can be useful for templates, for example. > > Depends of your case, but don't be afraid of objects ;) make some > time/memory measures in your use case, and select the best solution. > > Alexandre > > 2009/11/28 Adrien Mogenet &g

[symfony-users] Re: Doctrine: execute vs fetchArray

2009-11-27 Thread Adrien Mogenet
  return $this->execute($params, Doctrine_Core::HYDRATE_ARRAY); >     } > > So they are exactly the same :) > > On Nov 27, 8:34 pm, Adrien Mogenet wrote: > > > Hi all, > > > I'm a Propel user, but I'm switching to Doctrine... > > > I don&#x

[symfony-users] Doctrine: execute vs fetchArray

2009-11-27 Thread Adrien Mogenet
Hi all, I'm a Propel user, but I'm switching to Doctrine... I don't know if I should use execute() or fetchArray() to retrieve my data. execute() : I get an array of Object, and I like dealing with Objects ! fetchArray() : I read that it's better (less memory consuming ?) but I don't really enj

[symfony-users] Re: what is the easiest way to test whether the user just logged in?

2009-11-13 Thread Adrien Mogenet
What's your exact question ? Determining if this is the *first* time an user logged in ? -- Adrien On 14 nov, 00:37, larry wrote: > Symfony 1.2.5 > > i want my users to see a message when they first login (and each time > they login). I'm thinking I will override the signin method in sfGuard >

[symfony-users] Re: Functional tests and cookies

2009-11-13 Thread Adrien Mogenet
I tried to get Cookie which has a explicit name, and then I tried to test in sfBrowser that it has been correctly set, but it does not work... with('request')->hasCookie('MyCookie') fails :-/ -- Adrien On 11 nov, 16:40, Adrien Mogenet wrote: > Hi everyone, &

[symfony-users] Re: validateMyAction is not executed

2009-11-13 Thread Adrien Mogenet
part of the form for you. > > > That's the model now. Trying to do something different that the > > overall design of the framework would be quite a headache. > > > On Nov 12, 3:30 am, Adrien Mogenet wrote: > > > But that's not a form that I want to v

[symfony-users] Re: validateMyAction is not executed

2009-11-12 Thread Adrien Mogenet
e solution of your problem, but my advice is this: > That's a deprecated feature from symfony 1.0. Now the whole validation > system is included within the form framework. Use that instead of > relying on deprecated stuff, especially if you're using sf 1.2. > > On Nov 11,

[symfony-users] Re: Overwrite Security Actions Settings

2009-11-11 Thread Adrien Mogenet
Maybe security.yml ? Otherwise you could custom your login action to redirect to another one or set custom template :-) Keep us posted, Adrien On 11 nov, 19:30, jp wrote: > Hi, > > security actions are defined in apps/myapp/settings.yml > Is it possible to overwrite those settings for a modul

[symfony-users] Functional tests and cookies

2009-11-11 Thread Adrien Mogenet
Hi everyone, In my action class, I'm checking that cookie was correctly created : > $request->getCookie(session_name()) But in my functional test, cookie seems to be created. Documentation says : > The test browser has its own mechanisms to manage sessions (sfTestStorage) > and cookies. Am

[symfony-users] Re: validateMyAction is not executed

2009-11-11 Thread Adrien Mogenet
Does anyone use this feature ? -- Adrien On 10 nov, 12:15, Adrien Mogenet wrote: > Hi all, > > As  described here > :http://www.symfony-project.org/book/1_2/06-Inside-the-Controller-Laye..., > I want to validate an action. > > but my public function validateShow() is n

[symfony-users] validateMyAction is not executed

2009-11-10 Thread Adrien Mogenet
Hi all, As described here : http://www.symfony-project.org/book/1_2/06-Inside-the-Controller-Layer#Validation%20and%20Error-Handling%20Methods, I want to validate an action. but my public function validateShow() is not executed before my executeShow() action. Any idea ? Is this feature still u

[symfony-users] Re: functional tests : issue with auto-increment and userID

2009-10-29 Thread Adrien Mogenet
nerate it before you run tests, or truncate each table, then you should > have things working as you want. > > On Tue, Oct 27, 2009 at 6:09 PM, Adrien Mogenet > wrote: > > > > > > > Hi everyone, > > > I'm using fixture to fill my database with 3 fake us

[symfony-users] Re: change the value on the form with ajax

2009-10-29 Thread Adrien Mogenet
Humm I'm not using link_to_remote, but you can find an example of what I did here : http://code.google.com/p/piwam/source/browse/trunk/apps/front/modules/cotisation/templates/_form.php At the end of this source file, you can find JS function using ajaxupdater to update the "amount" text field.

[symfony-users] functional tests : issue with auto-increment and userID

2009-10-27 Thread Adrien Mogenet
Hi everyone, I'm using fixture to fill my database with 3 fake user accounts, the first one is my "demo" account. I'm writing my tests using a $browser as sfGuardTestFunctional, which signs me in automatically. The first time I launch my test, my $browser works perferctly and shows that my User

[symfony-users] Re: Custom Propel Unique error message

2009-10-19 Thread Adrien Mogenet
ject.org/browser/branches/1.2/lib/plugins/sfPr... > > sfValidatorPropelUnique throws an "invalid" error, customize that in > your form, in the second parameter of the constructor. > > On Sun, Oct 18, 2009 at 23:26, Adrien Mogenet > wrote: > > > Hi, > > > My

[symfony-users] Custom Propel Unique error message

2009-10-18 Thread Adrien Mogenet
Hi, My field "login" has been set as unique. So when I try to register as an existing user, Propel is warning me correctly with an error message (an object with the same _ _ _ _ already exists), but I would like to use a custom message. How can I do that ? Btw, I created a custom UniqueValida

[symfony-users] Re: Strange behaviour when freezing project

2009-10-08 Thread Adrien Mogenet
Ok, I'll follow that ticket ! It's the same issue I met :-) -- Adrien Mogenet http://www.ze-technology.com On 7 oct, 15:56, "Henning Glatter-Gotz" wrote: > Adrien, > > I started using the freeze task a few weeks ago and noticed that it would > link the tw

[symfony-users] Re: Strange behaviour when freezing project

2009-10-07 Thread Adrien Mogenet
Thank you both of you !! -- Adrien Mogenet http://www.ze-technology.com http://adrien.frenchcomp.net On 7 oct, 13:31, Eno wrote: > On Wed, 7 Oct 2009, Adrien Mogenet wrote: > > Once I `symfony project:freeze /path/to/sf/`, I noticed that both > > plugins folders in /we

[symfony-users] Strange behaviour when freezing project

2009-10-07 Thread Adrien Mogenet
PropelPlugin/web sfProtoculousPlugin -> ../../../Symfony/1.2/lib/plugins/ sfProtoculousPlugin/web Well, did I forget something ? -- Adrien Mogenet http://adrien.frenchcomp.net http://www.ze-technology.com --~--~-~--~~~---~--~~ You received this message because you ar

[symfony-users] Re: From Propel to Doctrine... for every projects ?

2009-10-03 Thread Adrien Mogenet
Thanks for the answers :-) I think I will try to perform a change for one module, in order to estimate the complexity of this process. If it's really easy and fast to change, I will update the whole project, otherwise, I will use Doctrine only for future projects ! -- Adrien Mogenet Lookin

[symfony-users] From Propel to Doctrine... for every projects ?

2009-10-02 Thread Adrien Mogenet
ering if it would be interesting to change my current ORM, even if it's a small project. Will it take a long time to perform this change ? Will it be interesting in the near future to change from Propel to Doctrine ? If you have any experience to share, feel free :-) -- Adrien Mogenet Looking

[symfony-users] Disable cache checking for a module

2009-09-12 Thread Adrien Mogenet
cache directory Obviously it's normal. But I would like to disable the cache checking. In my install module, I wrote a config/cache.yml file : index: enabled: off But I still get the message. How to disable the checking and display my own error page if cache is now writable ? -- Adri

[symfony-users] Re: Unable to load fixtures twice

2009-08-04 Thread Adrien Mogenet
I wrote another test case... and I was able to launch this test twice, even if I load fixtures. So I think it was due to my test, but now I have to investigate to find the reason :-) On 4 août, 13:55, Adrien Mogenet wrote: > Propel 1.3 > > On 4 août, 13:50, Szabolcs Heil

[symfony-users] Re: Unable to load fixtures twice

2009-08-04 Thread Adrien Mogenet
Propel 1.3 On 4 août, 13:50, Szabolcs Heilig wrote: > Hello, > > What ORM are you using? Doctrine or Propel? > > I'm writing functional tests, and in bootstrap/functional.php I'm > > > loading my own fixtures files. > > It works fine the first time I launch my test (DB is empty at the > > beginn

[symfony-users] Unable to load fixtures twice

2009-08-04 Thread Adrien Mogenet
Hi folks, I'm writing functional tests, and in bootstrap/functional.php I'm loading my own fixtures files. It works fine the first time I launch my test (DB is empty at the beginning). But if I try to relaunch the test (with data in my DB), symfony can't clean my database ! I read the log file,

[symfony-users] Re: sfValidatorPropelChoice Problem

2009-07-21 Thread Adrien Mogenet
Hi ! Which version of symfony do you use ? It also didn't work for me when I was using symfony 1.1. That's why I decided to not use varchar as PK since this moment. -- Adrien http://www.ze-technology.com On 20 juil, 09:27, javiermf wrote: > Why sfValidatorPropelChoice validator doesn't work f

[symfony-users] Re: set/getFlash() issue : active during 2 requests

2009-07-21 Thread Adrien Mogenet
practice, since it avoids re-triggering the form by > hitting refresh.. > > Daniel > > On Jul 19, 8:49 am, Adrien Mogenet wrote: > > > Hi folks, > > > I've noticed something strange in my symfony app. > > I have 2 forms : a mailing form and a configurat

[symfony-users] Re: sfConfigCache::clear() doesn't clear the cache ?

2009-07-20 Thread Adrien Mogenet
peted behaviour... Adrien On 20 juil, 13:08, Adrien Mogenet wrote: > Hi, > > I'm developing a GUI for my application, and I would like to be able > to reload the config cache after editing a YAML file. > > Within my actions.class.php, I wrote : > >  $this->getConte

[symfony-users] sfConfigCache::clear() doesn't clear the cache ?

2009-07-20 Thread Adrien Mogenet
Hi, I'm developing a GUI for my application, and I would like to be able to reload the config cache after editing a YAML file. Within my actions.class.php, I wrote : $this->getContext()->getConfigCache()->clear(); But it does nothing... (ie: /cache/front/prod/config/ config_myfile.yml.php sti

[symfony-users] set/getFlash() issue : active during 2 requests

2009-07-19 Thread Adrien Mogenet
Hi folks, I've noticed something strange in my symfony app. I have 2 forms : a mailing form and a configuration form. They both set a flash message once form has been submit in order to display a success/failure message. It works well, BUT, for example, if I submit my mailing form, I reach the '

[symfony-users] Re: Easiest way to filter HTML inputs

2009-05-13 Thread Adrien Mogenet
) then I usually just run it through tidy and > then show it back to them on submit - so they can visually check it > themselves to see if it's what they wanted. > > -Original Message- > From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] >

[symfony-users] Easiest way to filter HTML inputs

2009-05-13 Thread Adrien Mogenet
Hi everyone, I was wondering what's the better way (or the easier) to filter HTML inputs ? I mean, users can in a form submit inputs like this : "foobar" Comments are welcome ! -- Adrien --~--~-~--~~~---~--~~ You received this message because you are subscribed t

[symfony-users] Re: Storing "NULL" instead of empty string

2009-05-07 Thread Adrien Mogenet
;   ('') not null > > greets > Sven > > Adrien Mogenet schrieb: > > > Hi all, > > > I get a very stupid question... and I'm really surprized to see that I > > can't find any solution thanks to Google ! > > > Simple Model : >

[symfony-users] Storing "NULL" instead of empty string

2009-05-07 Thread Adrien Mogenet
Hi all, I get a very stupid question... and I'm really surprized to see that I can't find any solution thanks to Google ! Simple Model : -- user: id: ~ login: {varchar, required: false} foobar: {varchar, required: true} And then, when I'm filling my form, if I fill

[symfony-users] Re: sfValidatorEmail fails

2009-04-22 Thread Adrien Mogenet
That's good to know !! (even if I mostly work with Propel...) -- Adrien http://www.tekover.net On 23 avr, 00:02, Bernhard Schussek wrote: > Hi Eric, > > I know that problem too well. Unfortunately the Doctrine model and the > forms framework use two different validators. The forms validator > (

[symfony-users] Re: How do I set a field value on a form?

2009-04-22 Thread Adrien Mogenet
e only one time "setDefault ('updated_by', 'value');" within the form instead of writing it each time you instantiate a new form. (and the developper may forget to set the value...). I think this is a good reason, at least, there should be a way to do it... -- Adrien Mogenet htt

[symfony-users] Re: sfValidatorEmail fails

2009-04-22 Thread Adrien Mogenet
Are you really sure it's due to a wrong domain name ? I don't know why it would be Doctrine that will throw Exception... Which email address did you enter ? -- Adrien Mogenet http://www.tekover.net On 22 avr, 20:32, Eric wrote: > Hi, > > I just setup my table with > &g

[symfony-users] Re: How do I set a field value on a form?

2009-04-22 Thread Adrien Mogenet
when I call this method from the action class. I'm still looking for a way to force this setting within the form.. -- Adrien Mogenet On 22 avr, 12:34, Mark Smith wrote: > I have a form with a list of services on it. When the user submits the > form, I want it to remember what item on the

[symfony-users] Re: http://www.symfony-project.org/plugins/ Unavailable

2009-04-22 Thread Adrien Mogenet
I don't know why but I find problems appear too often on this Website... Is it due to servers ? application ? On 22 avr, 09:06, Lawrence Krubner wrote: > On Apr 22, 12:13 am, Sherif wrote: > > > I'm unable to login tohttp://www.symfony-project.org/plugins/(its > > been like that for a few hours

[symfony-users] Re: Something I don't understand with form default values

2009-04-21 Thread Adrien Mogenet
I don't know if I was clear or not... but I DON'T want force values in the CLASS but in the FORM :-) Thx anyway lol -- Adrien On 21 avr, 09:02, Lawrence Krubner wrote: > On Apr 21, 2:45 am, Adrien Mogenet wrote: > > > Symfony 1.2 > > > As I said in my first me

[symfony-users] Re: Something I don't understand with form default values

2009-04-20 Thread Adrien Mogenet
orce a default value from the action. > Always. I've done this many times. > > On Apr 20, 5:42 pm, Adrien Mogenet wrote: > > > As I tought it changed nothing...  :-/ > > > -- > > Adrien > > > On 20 avr, 23:28, "FlyLM [ML]" wrote: > > >

[symfony-users] Re: Something I don't understand with form default values

2009-04-20 Thread Adrien Mogenet
As I tought it changed nothing... :-/ -- Adrien On 20 avr, 23:28, "FlyLM [ML]" wrote: > 2009/4/20 Adrien Mogenet > > > > > Hi all, > > > there is something - strange ? - that I don't understand. > > Let say I have a field "updated

[symfony-users] Force use of default values

2009-04-20 Thread Adrien Mogenet
Actually, I noticed that the field takes the value stored in database instead of taking my default value (normal behaviour). So, now my question is : how to force use of these default values ? -- Adrien On 20 avr, 19:42, Adrien Mogenet wrote: > Hi all, > > there is something

[symfony-users] Something I don't understand with form default values

2009-04-20 Thread Adrien Mogenet
l ? Is there a way to do what I wanted to write ? I don't think it matters but anyway : the default value '42' is actually get from sfUser::getAttribute('user_id', null, 'user'); method. -- Adrien Mogenet --~--~-~--~~~---~--~~ You r

[symfony-users] Managing references between nested forms

2009-04-19 Thread Adrien Mogenet
ot; with the ID of the new organisation that we've just registered. Did anyone play with such behaviour ? -- Adrien Mogenet --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To pos

[symfony-users] Re: Issue with Swift

2009-04-15 Thread Adrien Mogenet
12:14 PM, Adrien Mogenet > > wrote: > > > My error report configuration is already set to 'E_ALL' :-) > > When I write "new Swift(new Swift_Connection_NativeMail())" the `echo` > > is printed on the screen... but not with new Swift_Connection_SMTP > &g

[symfony-users] Re: Issue with Swift

2009-04-15 Thread Adrien Mogenet
Yes I do !! And I wish I would get an error if it was disabled ! -- Adrien On 15 avr, 18:23, Pablo Godel wrote: > Do you have openssl support enabled in PHP? > > On Wed, Apr 15, 2009 at 12:14 PM, Adrien Mogenet > > wrote: > > > My error report configuration

[symfony-users] Re: Issue with Swift

2009-04-15 Thread Adrien Mogenet
`error_reporting(E_ALL);` before the code, and you'll get the > error message on the output, not just the error log. > > On Wed, Apr 15, 2009 at 17:37, Adrien Mogenet > wrote: > > > I performed a test using  `class_exists()` and Swift class seems to be > > correctly load

[symfony-users] Re: Issue with Swift

2009-04-15 Thread Adrien Mogenet
I performed a test using `class_exists()` and Swift class seems to be correctly loaded... -- Adrien On 15 avr, 17:34, Pablo Godel wrote: > did you try another connection method? It is possible that PHP is not > finding the class. > > On Wed, Apr 15, 2009 at 11:31 AM, Adrien Mogene

[symfony-users] Re: Issue with Swift

2009-04-15 Thread Adrien Mogenet
to me you are getting a > PHP fatal error before echo. > > If for some reason you can't see the error log, try to move the echo > line up until you find it, then you will know on what line the error > is. > > Pablo > > On Wed, Apr 15, 2009 at 11:20 AM, Adrien Mogenet

[symfony-users] Issue with Swift

2009-04-15 Thread Adrien Mogenet
Hi all, I'm trying to use Symfony 1.2 with Swift and I got a strange issue.. $methodObject = new Swift_Connection_SMTP('smtp.gmail.com', 465, Swift_Connection_SMTP::ENC_SSL); $methodObject->setUsername('un...@gmail.com'); $methodObject->setPassword('PWD'); $mailer = new Swift($methodOb

[symfony-users] Re: Issue when removing created_at form's field

2009-04-05 Thread Adrien Mogenet
Finally I found my mistake... I just forgot to add the following line unset($this['created_at'], $this['updated_at']); in the form class. Thanks for the help -- Adrien On 5 avr, 14:27, Adrien Mogenet wrote: > Unfortunately, it didn't work :-( > Don't know

[symfony-users] Re: Issue when removing created_at form's field

2009-04-05 Thread Adrien Mogenet
Unfortunately, it didn't work :-( Don't know what I should try... -- Adrien On 3 avr, 23:22, Arnold Ispan wrote: > Hello, > > Maybe the solution is to rebuild forms and filters with *propel:build-forms > *and  *propel:build-filters* > > On Fri, Apr 3, 2009 at 11:41

[symfony-users] Re: Issue when removing created_at form's field

2009-04-04 Thread Adrien Mogenet
gt; On Fri, Apr 3, 2009 at 11:41 PM, Adrien Mogenet > wrote: > > > > > Hi all, > > > I have a classical entity, let say `member`, with `created_at` and > > `updated_at` fields. > > I performed a  propel:build-model, I generated CRUD module, and when I > &g

[symfony-users] Issue when removing created_at form's field

2009-04-03 Thread Adrien Mogenet
Hi all, I have a classical entity, let say `member`, with `created_at` and `updated_at` fields. I performed a propel:build-model, I generated CRUD module, and when I removed created_at and updated_at fields from the form's template, their values are set to empty once I submit the form... How ca

[symfony-users] Re: symfony in shared servers

2009-02-14 Thread Adrien Mogenet
What do you mean exactly ? There are a lot of different scenarii for a such architecture... Do you want to perform load balancing ? high availability platform ? -- Adrien Mogenet On 14 fév, 12:33, Harinath Mallepally wrote: > Hi, > > What is the best way to install and use symfony

[symfony-users] Re: Search form and paging system.

2008-11-09 Thread Adrien Mogenet
Thank you all. I didn't think that using the user session would be the best way to do, for me the concept of query is not linked to the concept of user, but I see it may be a good way to do what I want... -- Adrien Mogenet http://www.tekover.net On 7 nov, 23:09, "Kiril Angov" &l

[symfony-users] Search form and paging system.

2008-11-06 Thread Adrien Mogenet
Hi everyone. I developped a "complex" search form (with about 30 criteria) and I would like to be able to use a sfPropelPager object to get a powerful paging system. My problem is that I build the query once the form has been sent, so the paging system works from this first page I display, but i