[symfony-users] Symfony with MS-SQL Server

2011-02-23 Thread axel at
Hello list, are there any experiences running symfony 1.4 with Microsoft SQL Server backends? is it stable, are there any known bugs or problems? thx axel -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message bec

[symfony-users] Re: several parallel requests from one client?

2010-11-01 Thread axel at
er->shutdown() nor from sfUser.shutdown() so I had to call it after $this->getUser()->shutdown()... maybe a symfony change? > > > On Mon, Nov 1, 2010 at 1:36 PM, axel at wrote: > > thx for your help: > > > adding: > > > $this->getUser()->shutdo

[symfony-users] Re: several parallel requests from one client?

2010-11-01 Thread axel at
Feel free to take a look: > > http://garethmccumskey.blogspot.com/2009/10/php-session-write-locking... > > > > On Mon, Nov 1, 2010 at 12:26 PM, axel at wrote: > > hello, > > > when I start a symfony web request that needs several seconds to be > > fin

[symfony-users] several parallel requests from one client?

2010-11-01 Thread axel at
hello, when I start a symfony web request that needs several seconds to be finished, other requests to the same server/symfony application sent from the same client browser are "locked" until the first request is finished. (requests started during the processing time of the first long request that

[symfony-users] Re: doctrine query and not in (select ...) doesnt work

2010-10-25 Thread axel at
#x27;Imprimer, Pensez à Votre Responsabilitée Environnementale! > > On Sun, Oct 24, 2010 at 4:33 PM, axel at wrote: > > hello, > > > I need the follwing query: > > > -> select * from person p where > > ... > > and (p.personid not in (select personid for

[symfony-users] doctrine query and not in (select ...) doesnt work

2010-10-24 Thread axel at
hello, I need the follwing query: -> select * from person p where ... and (p.personid not in (select personid form person2building...) where person2building is an m:n relation connecting person and building table via primary keys the following doctrine query $q = Doctrine_Query::create()

[symfony-users] Re: distinguishing between task and web request

2010-10-13 Thread axel at
sForm... $newObject = $form->save(); On 13 Okt., 12:49, Thomas Rabaix wrote: > You are doing something wrong, models must be context independant > > > > On Wed, Oct 13, 2010 at 11:17 AM, axel at wrote: > > works for me > > > thx a lot! > > > On

[symfony-users] Re: distinguishing between task and web request

2010-10-13 Thread axel at
tale! > > On Wed, Oct 13, 2010 at 11:08 AM, axel at wrote: > > hello, > > > I need to distinguish if a model function was called within a web > > request or run within a task (to avoid error thrown by > > sfContext::getInstance() when executed within a taks) > >

[symfony-users] distinguishing between task and web request

2010-10-13 Thread axel at
hello, I need to distinguish if a model function was called within a web request or run within a task (to avoid error thrown by sfContext::getInstance() when executed within a taks) thx for your help -- If you want to report a vulnerability issue on symfony, please send it to security at symfo

[symfony-users] order by with m:n relation

2010-09-15 Thread axel at
Invoice: columns: id: ... relations: Items: refClass: invoice2item local: invoiceid foreign:itemid alise: itemlist invoice2item: tablename... options: orderBy: name columns: invoiceid... itemid... relations invoice: local: invoiceid foreign:id i

[symfony-users] Re: Add description text after formWidgets in admin generator

2010-09-14 Thread axel at
great! thx a lot On 14 Sep., 15:51, Massimiliano Arione wrote: > On 14 Set, 12:43, axel at wrote: > > > sometimes I would like to render a certain description text after a > > sfWidgetFormInputText rendered by admin generator. > > > eg. > > SpecialTextAttribu

[symfony-users] Add description text after formWidgets in admin generator

2010-09-14 Thread axel at
hello, sometimes I would like to render a certain description text after a sfWidgetFormInputText rendered by admin generator. eg. SpecialTextAttribut [__] "Please enter your bla bla bla" any ideas how to achieve this? -- If you want to report a vulnerability issue on symfony, please se

[symfony-users] custom url for doctineRouteCollection

2010-08-25 Thread axel at
hello, Car: class: sfDoctrineRouteCollection options: model:Car module: car prefix_path: /car column: id with_wildcard_routes: true to generate the edit url I can use: url_for('@car_edit?id=' . $car->getId()); generates

[symfony-users] disable form value remembering?

2010-08-23 Thread axel at
symfony "rembembers" filter settings in admin generated forms, is there a way to disable that (globaly / or for certain modules)? -- 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

[symfony-users] using same template in different applications

2010-08-23 Thread axel at
is it possible to use a template in several different applications of the same project? -- 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. T

[symfony-users] Where to place model integrity checks

2010-08-18 Thread axel at
Additional to FormValidation I often need model lowlevel integritychecks before saving an object. eg. to check if there are related objects before delete. I think these checks should be placed in the model class, but it's neccessary to call them from an actioncontroller and to deal there with the

[symfony-users] Re: direct sql in Doctrine_Migration class

2010-07-24 Thread axel at
er::getInstance()->getCurrentConnection(); > $conn->clean(); (or is it $conn->clear();?) > > On Jul 22, 1:49 pm, axel at wrote: > > > hello, > > > I would need an example how to use direct sql statements within the > > up() function of an doctrine migration cla

[symfony-users] direct sql in Doctrine_Migration class

2010-07-22 Thread axel at
hello, I would need an example how to use direct sql statements within the up() function of an doctrine migration class (extends Doctrine_Migration_Base) thx -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message

[symfony-users] how to get changes in modell class pre update

2010-07-14 Thread axel at
hello, I have a model with an integer attribute - invitationCount, in case of an model update I would need to know the old and new value. public function preUpdate($event) { $oldValue = $this->getInvitationCount(); $newValue = .? } -- If you want to report a vulnerability issue on

[symfony-users] Re: custom rendering of sfWidgetFormDoctrineChoice?

2010-04-22 Thread axel at
#x27;myWidgetFormSelectCheckboxTable' ))); maybe there are smarter solutions but it works. On 16 Mrz., 10:15, Tom Ptacnik wrote: > Maybe this.. > > sfWidgetFormSchemaDecorator     > http://www.s

[symfony-users] orderBy of embedded relations

2010-04-22 Thread axel at
hello, I use embedRelation in a form to embed a 1:n relation $this->embedRelation('Events', 'myEventForm'); Events has in schema.yml options: orderBy: date ASC but it isn't used within the embedded form rendering. (if I use $eventlist = $location->getEventList(); the returned events are s

[symfony-users] Re: Disable checkbox without loosing value?

2010-04-08 Thread axel at
not send disabled inputs' > values, just like when a checkbox is not checked. Therefore symfony > interprets it as a false. > Overwrite the forms doBind() method, to set the fields current value > in the input (tainted) array. > > On Wed, Apr 7, 2010 at 16:13, axel at wrote

[symfony-users] Disable checkbox without loosing value?

2010-04-07 Thread axel at
hello, to disable a checkbox in a form for certain users I use: if (!user->mayXY() { $this->widgetSchema['active'] = new sfWidgetFormInputCheckbox(array(), array('disabled' => 'disabled')); } to disable editing of the checkbox but still displaying the current setting. the problem is that symfo

[symfony-users] Re: m:n with orderBy setting in yml is ignored

2010-03-15 Thread axel at
ot possible. > > On 16 ún, 15:51, axel at wrote: > > > hm no one with the same problem here? > > > On 15 Feb., 14:41, axel at wrote: > > > > hello, > > > > using symfony 1.4 with doctrine: > > > how can I add an order by xy to the def

[symfony-users] custom rendering of sfWidgetFormDoctrineChoice?

2010-03-11 Thread axel at
hello, the render method of new sfWidgetFormDoctrineChoice(array( 'multiple' => true, 'expanded' => true, renders the choices as unordered list. what's the easiest way t

[symfony-users] Re: problems with embedRelation with a self related m:n

2010-03-09 Thread axel at
On 5 Mrz., 08:22, Tom Ptacnik wrote: > Maybe it's only a typo here, but in relation definition in the Person > table you have "foreign: related" and it should be "foreign: > relatedId" > it's only a simplified example for my problem - so yes a typo but not the problem. > Or maybe the problem is

[symfony-users] Re: problems with embedRelation with a self related m:n

2010-03-09 Thread axel at
type: many didn't change the problem On 4 Mrz., 09:24, romain godefroy wrote: > hi, > > Have you tried to defined the relation with > type: many > I don't know if it could change anything for you but it should be > test ? > > On 3 mar, 20:56,axelat wrote: > > > I have a list of persons, and an m

[symfony-users] problems with embedRelation with a self related m:n

2010-03-03 Thread axel at
I have a list of persons, and an m:n relation that relates one person with several other persons: Person: columns: id type: integer(4) primary: true name: string(255) relations: # m:n Person2Person Person: class: Person refClass: Person2Person local:

[symfony-users] m:n problem

2010-02-24 Thread axel at
hello list, problem: I have to build a symfony model for an existing database structure and I'm not allowed to change the existing structure. there are two m:n related tables using the same m:n table partitioned with a type attribute: table1 id ... table2 id ... table3 id ... table1_to_table2_

[symfony-users] Re: m:n with orderBy setting in yml is ignored

2010-02-16 Thread axel at
hm no one with the same problem here? On 15 Feb., 14:41, axel at wrote: > hello, > > using symfony 1.4 with doctrine: > how can I add an order by xy to the default doctrine getter > > example: > > Event: >   columns: >     id: >       type: integer(4)

[symfony-users] m:n with orderBy setting in yml is ignored

2010-02-15 Thread axel at
hello, using symfony 1.4 with doctrine: how can I add an order by xy to the default doctrine getter example: Event: columns: id: type: integer(4) primary: true title: type: varchar(255) Visitor: class: Visitor refClass: Event2Visitor local: id

[symfony-users] mergeForm, embeddForm, embedRelation

2010-02-09 Thread axel at
Hello list, are there any examples, docs for mergeForm, embeddForm, embedRelation and symfony 1.4? I try to embedd an 1:1 related object into a form using mergeForm. The attributes of the merged form are displayed correctly but save doesn't work. "Unknown record property / related component x on

[symfony-users] Changing group title in admin generator edit view

2010-02-08 Thread axel at
hello, how can I change the displayed group title from an admin generated edit view: form: fields: display: NONE: [a,b,c] Group1: [x,y,z ] Group2: [u,v,w ] from eg Group1: "special i18n title with öüß" -- You received this message because you

[symfony-users] Re: Slow template rendering

2010-01-28 Thread axel at
    >           {$user['firstname']} {$user['lastname']} >         > EOT; > > } ?> > > Does this solve your speed problem? > > Georg > > Am 27.01.2010 19:58, schrieb axel at: > > > hello list, > > > symfony seems to b

[symfony-users] Re: Slow template rendering

2010-01-28 Thread axel at
ponsibility! > Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! > > On Thu, Jan 28, 2010 at 11:08 AM, axel at wrote: > > > On 28 Jan., 06:49, Eno wrote: > > > On Wed, 27 Jan 2010, axel at wrote: > > > > I didn't expect it to be faster

[symfony-users] Re: Slow template rendering

2010-01-28 Thread axel at
On 28 Jan., 06:49, Eno wrote: > On Wed, 27 Jan 2010, axel at wrote: > > I didn't expect it to be faster than straight PHP, but it's about 35 > > times slower!!! do you have any constructive ideas for performance > > tuning? > > People always make such a sim

[symfony-users] Re: Slow template rendering

2010-01-27 Thread axel at
I didn't expect it to be faster than straight PHP, but it's about 35 times slower!!! do you have any constructive ideas for performance tuning? On 27 Jan., 21:59, Eno wrote: > On Wed, 27 Jan 2010, axel at wrote: > > I just wrote the same code with "standard" php - di

[symfony-users] Re: Slow template rendering

2010-01-27 Thread axel at
I just wrote the same code with "standard" php - direct database access, the request took 0,7 seconds! (same system as used above, intel cor...@3ghz with 8 gigs ram) On 27 Jan., 19:58, axel at wrote: > hello list, > > symfony seems to be extrem slow - compared to "nati

[symfony-users] Slow template rendering

2010-01-27 Thread axel at
hello list, symfony seems to be extrem slow - compared to "native" php a request with the following code takes ~26 seconds (count($event- >getUserList()) == 5000) getUserList() as $user): ?> getFirstname(). " ". $user->getLastname (); ?> typecalls time (ms)

[symfony-users] Re: Advanced Forms Example

2010-01-14 Thread axel at
> How to add delete link with embedRelation() ? > > On 13 Gen, 17:29, axel at wrote: > > > hi list, > > > I'm using embedForm() and embedRelation() (described > > in:http://www.symfony-project.org/advent_calendar/8/enhttp://www.symfony... > > ) > &g

[symfony-users] Advanced Forms Example

2010-01-13 Thread axel at
hi list, I'm using embedForm() and embedRelation() (described in: http://www.symfony-project.org/advent_calendar/8/en http://www.symfony-project.org/advent_calendar/9/en ) to handle upload of serveral files to objects of a certain class. everything works fine as described in the example. I use th

[symfony-users] Re: sfWidgetFormJQueryDate option format is no longer supported in version 1.1.1?

2010-01-12 Thread axel at
there is already a ticket reporting this problem: http://trac.symfony-project.org/ticket/8041 I closed your ticket referring to 8041 I think mm-dd- is the standard format in the usa? greetings axel On 12 Jan., 07:57, dziobacz wrote: > I would like to use also format in sfWidgetFormJQueryDa

[symfony-users] Re: sfWidgetFormJQueryDate option format is no longer supported in version 1.1.1?

2010-01-04 Thread axel at
and try this full-javascript > solution:http://garakkio.altervista.org/datepicker/ > > On 29 Dic, 13:58, axel at wrote: > > > after upgrading to symonfy 1.3 and sfFormExtraPlugin  1.1.1 the > > "format" option is no longer supported by sfWidgetFormJQuery > >

[symfony-users] Re: sfWidgetFormJQueryDate option format is no longer supported in version 1.1.1?

2009-12-30 Thread axel at
yes I use sfFormExtraPlugin 1.1.1, the latest stable version On 30 Dez., 19:29, gino pilotino wrote: > is this the _latest_ sfFormExtraPlugin ? > > On 30 Dic, 13:51, axel at wrote: > > > no one here with the same problem? any ideas? > > thx > > >

[symfony-users] Re: sfWidgetFormJQueryDate option format is no longer supported in version 1.1.1?

2009-12-30 Thread axel at
no one here with the same problem? any ideas? thx On 29 Dez., 13:58, axel at wrote: > after upgrading to symonfy 1.3 and sfFormExtraPlugin  1.1.1 the > "format" option is no longer supported by sfWidgetFormJQuery > >     $this->setWidgets(array( >

[symfony-users] inconsistent line ending style - symfony 1.4.1

2009-12-30 Thread axel at
after upgrading to symfony 1.4.1 under windows (downloaded zip) doctrine:build-model generates Base* files with mixed line endings: '\n' and '\r\n' a svn commit doesn't work for those files "svn: Inconsistent line ending style" -- You received this message because you are subscribed to the Google

[symfony-users] sfWidgetFormJQueryDate option format is no longer supported in version 1.1.1?

2009-12-29 Thread axel at
after upgrading to symonfy 1.3 and sfFormExtraPlugin 1.1.1 the "format" option is no longer supported by sfWidgetFormJQuery $this->setWidgets(array( 'from_date'=> new sfWidgetFormJQueryDate(array( 'image'=>'/images/icons/calendar_view_month.gif', 'format' =

[symfony-users] Re: symfony plugin:*

2009-12-29 Thread axel at
ez., 12:21, axel at wrote: > sorry, that doesn't solve the problem. > > I still get: > c:\dev\projectXY>s plugin:list > Installed plugins: > PHP Notice:  unserialize(): Error at offset 6885 of 20307 bytes in C: > \PHP52\PEAR\pear\PEAR\Registry.php on line 1147 > P

[symfony-users] Re: symfony plugin:*

2009-12-29 Thread axel at
ojectConfig and try again ? > > Before Printing, Think about Your Environmental Responsibility! > Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! > > On Tue, Dec 29, 2009 at 11:59 AM, axel at wrote: > > Hello list, > > > any plugin shell

[symfony-users] symfony plugin:*

2009-12-29 Thread axel at
Hello list, any plugin shell command (eg symfony plugin-list) produces the following error: PHP Notice: unserialize(): Error at offset 6885 of 20307 bytes in C: \PHP52\PEAR\pear\PEAR\Registry.php on line 1147 is there a way to fix this? thx a lot -- You received this message because you are s

[symfony-users] symfony plugin:

2009-12-29 Thread axel at
PHP Notice: unserialize(): Error at offset 6885 of 20307 bytes in C: \PHP52\PEAR\pear\PEAR\Registry.php on line 1147 -- 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 unsubs

[symfony-users] admin generator edit form->save() deletes unbound attributes

2009-12-17 Thread axel at
hello, following prolbem with symfony 1.3 (and 1.2): admin generator, user/ edit view, action save: deletes parameters in database that are not bound! example: schema.yml: User: tableName: user columns: id: type: integer(4) primary: true name:string(35) ... Useraddon:

[symfony-users] sfWidgetFormJQueryDate minDate

2009-12-17 Thread axel at
hello list, how can I set the minimal selectable date in sfWidgetFormJQueryDate I tried: config => {'minDate:. but it doesn't work $this->widgetSchema['gebdat'] = new sfWidgetFormJQueryDate(array ( format => '%day%-%month %-%year%',

[symfony-users] Re: encoding problems with csv export

2009-12-16 Thread axel at
+utf8 > >     gabriel > > On Dec 15, 7:25 pm, axel at wrote: > > > hello, > > > I try to export result rows (from admin-generator) to a csv file: > > public function csvExport($pager) { > > ... > > $this->getResponse()->clearHttpHeaders(); &g

[symfony-users] encoding problems with csv export

2009-12-15 Thread axel at
hello, I try to export result rows (from admin-generator) to a csv file: public function csvExport($pager) { ... $this->getResponse()->clearHttpHeaders(); $this->getResponse()->setHttpHeader('Content-Type', 'application/ vnd.ms-excel;charset=utf-8'); $this->getResponse()->setHttpHeader('Content-Di

[symfony-users] problem with admin generator

2009-11-26 Thread axel at
hello list, in my current project I have to use an existing database and in this special case there is no way to change the given structure (which is not 3 normalized) Person: tableName: ... columns: id: type: integer(4) primary: true type1: integer(4) type2: integer(4

[symfony-users] Re: sfGuardUser: Unknown method sfGuardUser::getProfile

2009-11-25 Thread axel at
ser data out of my top- > > level schema.yml file, delete the generic models that just happened to > > have names like sfGuardUserPeer, and thus allow my site to "see" the > > code in the plugin. > > > If I were you, I'd look for some place where you

[symfony-users] sfGuardUser: Unknown method sfGuardUser::getProfile

2009-11-24 Thread axel at
Hello, I try to customize the sfGuardUser model, therefore I added sfGuardUserProfile to my schema.yml and built/executed model and sql for it. here's the problem: $this->getUser()->getProfile()->getFirstName(); throws the following error: Unknown method sfGuardUser::getProfile my configuration:

[symfony-users] Re: sfGuard with several database connections

2009-11-23 Thread axel at
> > } > > Also, ensure you have generated model classes for the xyz database and then > cleared cache after you did that too > > > > On Mon, Nov 23, 2009 at 2:52 PM, axel at wrote: > > hello, > > > I have defined two database connections in my databa

[symfony-users] sfGuard with several database connections

2009-11-23 Thread axel at
hello, I have defined two database connections in my databases.yml: all: xyz: class: sfDoctrineDatabase param: dsn: 'mysql:host=localhost;dbname=xyz' ... abc: class: sfDoctrineDatabase param: dsn: 'mysql:host=localhost;dbname=abc' installed sfGuardPlugin, the sf* da

[symfony-users] sfWidgetFormJQueryDate as default in auto generated code

2009-10-09 Thread axel at
hello list, 1) is there a way to make sfWidgetFormJQueryDate the default widgets for datetime fields in autogenerated code (Base*Form.classes) eg: class BaseTutorialForm extends BaseFormDoctrine { public function setup() { $this->setWidgets(array( 'id' => new sf

[symfony-users] Optimal PHP Version for Symfony 1.2

2009-10-07 Thread axel at
hello, I'm still new to symfony and php and need a little help: what's the most stable configuration for large webprojects for the moment? symfony 1.2 and php5.2.x or better php5.3.x. if symfony 1.2 && php5.3 is recommendet, can anybody link me a tutorial how to get plugin:install (pear) working