[symfony-users] Re: symfony & database

2009-08-10 Thread Eno
On Mon, 10 Aug 2009, soltani samir wrote: > Hi > the form class in this path: > > /var/www/sf_sandbox/lib/form/DocumentForm.class.php > > and the structure is : > > class DocumentForm extends sfForm > { > protected static $vtypedoc = array('facture', 'bon de commande', > 'tunisiana', 'RH',

[symfony-users] Re: symfony & database

2009-08-10 Thread rooster (Russ)
Hi, save() is functionality that requires an "object" form, so your form needs to extend a "BaseFormDoctrine" or Propel equivalent, normally via a "BaseMyClassForm". Since your form has no reference to an object, there is nothing to save. I'd suggest having a quick blast through the docs http:/

[symfony-users] Re: symfony & database

2009-08-10 Thread soltani samir
Hi the form class in this path: /var/www/sf_sandbox/lib/form/DocumentForm.class.php and the structure is : new sfWidgetFormSelectRadio(array('choices' => self::$vreges)), 'date' => new sfWidgetFormDate(), 'type' => new sfWidgetFormSelect(array('choices' => self::$vty

[symfony-users] Re: symfony & database

2009-08-10 Thread Eno
On Mon, 10 Aug 2009, soltanstein wrote: > I'm trying to create my first website with symfony framework, I have > create a simple form, and I try to sent the datas to the mysql > database (using propel). when I click to the button for submit, then > this message appears: > > Fatal error: Call to

[symfony-users] Re: Symfony database connection problem

2008-07-11 Thread Fabian Lange
Well, as symfony only opens the connection when it needs it (e.g. when you coded it) There is nothing you can do. Thats a limitation of PHP you cant do resource pooling. You need to allow as many connections as you need. .:Fabian On Fri, Jul 11, 2008 at 9:24 AM, Ridvan Lakas ng Bayan S. Baluyos <

[symfony-users] Re: Symfony database connection problem

2008-07-11 Thread Ridvan Lakas ng Bayan S. Baluyos
On Fri, Jul 11, 2008 at 3:17 PM, Nicolas Perriault <[EMAIL PROTECTED]> wrote: > > On Fri, Jul 11, 2008 at 9:05 AM, Ridvan Lakas ng Bayan S. Baluyos > <[EMAIL PROTECTED]> wrote: > > > It says that I have already reached the max number of connections > > to my database. > > You can increase this num

[symfony-users] Re: Symfony database connection problem

2008-07-11 Thread Nicolas Perriault
On Fri, Jul 11, 2008 at 9:05 AM, Ridvan Lakas ng Bayan S. Baluyos <[EMAIL PROTECTED]> wrote: > It says that I have already reached the max number of connections > to my database. You can increase this number by tuning the max_connections parameter of your mysql configuration file (my.cnf). > My