[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

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

2010-11-01 Thread axel at
that are sent from other clients (with other cookies and client ips) are processed immediately. is this a symfony configured behaviour (max parallel requests per cookie or per ip?) or rather an apache config issue? kind regards axel -- If you want to report a vulnerability issue on symfony, please

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

2010-11-01 Thread axel at
back. 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 axel.zu...@gmail.com wrote: hello, when I start a symfony web request that needs several seconds to be finished, other requests to the same

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

2010-11-01 Thread axel at
-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 axel.zu...@gmail.com wrote: thx for your help: adding: $this-getUser()-shutdown(); session_write_close(); to the actions

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

2010-10-25 Thread axel at
hm adding an alias in the subquery leads to a doctrine exception :-( regards axel On 24 Okt., 16:52, Stéphane stephane.er...@gmail.com wrote: Perhaps you should add an alias in the subquery for the table ? Regards, Before Printing, Think about Your Environmental Responsibility! Avant

[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] 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

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

2010-10-13 Thread axel at
, Oct 13, 2010 at 11:08 AM, axel at axel.zu...@gmail.com 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) thx for your help -- If you want

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

2010-10-13 Thread axel at
... $newObject = $form-save(); On 13 Okt., 12:49, Thomas Rabaix tho...@rabaix.net wrote: You are doing something wrong, models must be context independant On Wed, Oct 13, 2010 at 11:17 AM, axel at axel.zu...@gmail.com wrote: works for me thx a lot! On 13 Okt., 11:09, Stéphane

[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

[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

[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 garak...@gmail.com wrote: On 14 Set, 12:43, axel at axel.zu...@gmail.com wrote: sometimes I would like to render a certain description text after a sfWidgetFormInputText rendered by admin generator. eg. SpecialTextAttribut

[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] 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. To

[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] 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
();?) On Jul 22, 1:49 pm, axel at axel.zu...@gmail.com wrote: 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

[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] 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

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

2010-04-22 Thread axel at
/A-Widgets On 11 bře, 12:02, axel at axel.zu...@gmail.com wrote: hello, the render method of new sfWidgetFormDoctrineChoice(array(                                         'multiple' = true,                                         'expanded' = true

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

2010-04-08 Thread axel at
browsers do 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 axel.zu...@gmail.com 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 symfony

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

2010-03-15 Thread axel at
not possible. On 16 ún, 15:51, axel at axel.zu...@gmail.com wrote: hm no one with the same problem here? On 15 Feb., 14:41, axel at axel.zu...@gmail.com wrote: hello, using symfony 1.4 with doctrine: how can I add an order by xy to the default doctrine getter example: Event

[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 romain.godef...@wanadoo.fr 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 axel.zu...@gmail.com wrote:

[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 to...@tomor.cz 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

[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

[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 ...

[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 axel.zu...@gmail.com 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)       primary: true     title

[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
on y (x is an attribute of the embedded object and y is the base object that embedds the form. I found http://www.blogs.uni-osnabrueck.de/rotapken/2009/03/13/symfony-merge-embedded-form/ what seems to solve my problem but it doesn't work with symfony 1.4. thx axel -- You received this message

[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
On 28 Jan., 06:49, Eno symb...@gmail.com 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 simplistic comparisons. There's

[symfony-users] Re: Slow template rendering

2010-01-28 Thread axel at
, Pensez à Votre Responsabilitée Environnementale! On Thu, Jan 28, 2010 at 11:08 AM, axel at axel.zu...@gmail.com wrote: On 28 Jan., 06:49, Eno symb...@gmail.com 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

[symfony-users] Re: Slow template rendering

2010-01-28 Thread axel at
thanks for your help! kind regards Axel On 28 Jan., 14:08, Georg Gell geor...@have2.com wrote: Axel, is it possible that the creation of the user objects takes such a long time? I don't know what your user objects do, or how many are in this list, but just for displaying the names

[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 axel.zu...@gmail.com wrote: hello list, symfony seems to be extrem slow - compared to native php

[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 symb...@gmail.com wrote: On Wed, 27 Jan 2010, axel at wrote: I just wrote the same code with standard php - direct database

[symfony-users] Re: Advanced Forms Example

2010-01-14 Thread axel at
() ? On 13 Gen, 17:29, axel at axel.zu...@gmail.com wrote: hi list, I'm using embedForm() and embedRelation() (described in:http://www.symfony-project.org/advent_calendar/8/enhttp://www.symfony... ) to handle upload of serveral files to objects of a certain class. everything works fine

[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

[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 aaabbbcccda...@gmail.com wrote: I would like to use also format

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

2010-01-04 Thread axel at
sfWidgetFormJQuery and try this full-javascript solution:http://garakkio.altervista.org/datepicker/ On 29 Dic, 13:58, axel at axel.zu...@gmail.com 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] 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 axel.zu...@gmail.com wrote: 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

[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 spammm...@gmail.com wrote: is this the _latest_ sfFormExtraPlugin ? On 30 Dic, 13:51, axel at axel.zu...@gmail.com wrote: no one here with the same problem? any ideas? thx On 29 Dez., 13:58

[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

[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

[symfony-users] Re: symfony plugin:*

2009-12-29 Thread axel at
in your projectConfig 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 axel.zu...@gmail.com wrote: Hello list, any plugin shell command (eg symfony

[symfony-users] Re: symfony plugin:*

2009-12-29 Thread axel at
, axel at axel.zu...@gmail.com wrote: sorry, that doesn't solve the problem. I still get: c:\dev\projectXYs 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 PHP Notice:  unserialize(): Error

[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] 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] admin generator edit form-save() deletes unbound attributes

2009-12-17 Thread axel at
-getName())); -- Array ( [id] = 8407 [_csrf_token] = 63c5d561c2594e4ed3c587de458fb5d9 [name] = Axel ) I thought that save() or doSave() only updates bound attributes?!!!? -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send

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

2009-12-16 Thread axel at
hi gabriel, using ?php echo mb_convert_encoding($result-get ($property),ISO-8859-1,UTF-8) works. thx for your help! axel On 15 Dez., 19:44, pghoratiu pghora...@gmail.com wrote: MS Excell does not get along too well with UTF8 CSV, these files work just fine with OpenOffice. If OpenOffice

[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');

[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:

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

2009-11-25 Thread axel at
the code in the plugin. If I were you, I'd look for some place where you may have some code that is overriding the defaults in the plugin. On Nov 24, 9:55 am, axel at axel.zu...@gmail.com wrote: Hello, I try to customize the sfGuardUser model, therefore I added sfGuardUserProfile

[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] 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*

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

2009-11-23 Thread axel at
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 axel.zu...@gmail.com wrote: hello, I have defined two database connections in my databases.yml: all:  xyz:    class: sfDoctrineDatabase

[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

[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

[symfony-users] Re: enable E_NOTICE

2009-09-23 Thread Axel Zuzek
('frontend', 'dev', false); but there are no Notice: Undefined variable: messages for example thx for your help -- Dipl.-Ing. Axel Zuzek grundsteingasse 64/2/25 1160 Wien tel: +43 650 678 email: a...@zuzek.info

[symfony-users] Symfony 1.1 Forms - how to validate a field only depending on input in another field?

2008-03-26 Thread Axel Baumgartner
of doing this? Please help me out. Also I think this is a common thing and Symfony 1.1 really should support this. Regards, Axel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post