[symfony-users] [Concept] How does unlink() find the file to delete?

2010-04-20 Thread Prasad Gupte
My app has a 'Photo' field to store URL. It uses sfWidgetFormInputFileEditable for the widget schema. To delete the old image when a new image is uploaded, I use unlink before setting the value in the over-ridden setter and it works!!! if (file_exists($this-_get('photo')))

Re: [symfony-users] isValid always showing false

2010-04-20 Thread Gareth McCumskey
The isValid() method is a validation check on user input after a user has submitted a form based on the validators you create in the forms object. Its not used to see if the form structure itself is valid. On Mon, Apr 19, 2010 at 4:37 PM, kim thechosendra...@gmail.com wrote: hello, To see if a

Re: [symfony-users] Re: :-( please help. ajax problem - noob to ajax -probably simple

2010-04-20 Thread Gareth McCumskey
Its exactly the right approach so don't worry about that ;) On Mon, Apr 19, 2010 at 4:46 PM, Tofuwarrior psbur...@googlemail.com wrote: Thanks all, I knew about changing the template but not about the render text. I'm just off to try these things out now. Much appreciated. As a general

[symfony-users] sfDoctrineActAsTaggablePlugin Unknown method Video::addTag

2010-04-20 Thread comb
Hi! I'm trying to get sfDoctrineActAsTaggablePlugin working with symfony 1.4.4. First the plugin-install task doesn't exist, but it was renamed to plugin:install, so I used this. The installation fails with: r...@r-pc D:\xampp\htdocs\pen4\pen4 # symfony plugin:install

Re: [symfony-users] help_sfPhpExcelPlugi

2010-04-20 Thread safa boubekri
so i load the php_zip.dll but i have the same message :php statup: unable to load dynamic library C:\wamp\bin\php\php5.3.0\ext\ php_zip when i executed the command *$php plugins/sfPhpExcelPlugin/examples_1_2/01simple.php * after Create new PHPExcel object Fatal error: Class

Re: [symfony-users] help_sfPhpExcelPlugi

2010-04-20 Thread Stéphane
Hi, I think this plugin needs to be ran inside a symfony thing (task or action or whatever 'till sfConfig is loaded). This to say that you can't run it outside a symfony execution scope. From what you are saying, you have two problems: the php_zip library wich isn't loaded (but declared so php

[symfony-users] symfony + doctrine + memcached + lazy loading

2010-04-20 Thread soulfly
Hi, I use memcached on my project and I use -useResultCache(true) in queries. So everything would be ok, but when cache is enabled I get lazy loaded data in my query wich have leftJoins. Example: $q = $this-createQuery('a') -leftJoin('a.DicRgn c')

Re: [symfony-users] help_sfPhpExcelPlugi

2010-04-20 Thread safa boubekri
thank you but should you explain more -- 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

Re: [symfony-users] help_sfPhpExcelPlugi

2010-04-20 Thread Stéphane
Hi, I think you simply cannot use this plugin outside symfony. This means you cannot instantiate this object outside a symfony action for example (just like what did Deepak). If you don't understand actions, you should consider reading more on symfony ;-) Cheers, Before Printing, Think about

[symfony-users] Re: ayuda con __string()

2010-04-20 Thread andres vanegaz
porque en jobeet no veo que ete pasando nada ni em mi proyecto -- 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

[symfony-users] Re: isValid always showing false

2010-04-20 Thread kim
I want to validate my object cause these will not be given in by a form but by URL (cause the frontend requires this) so actualy i want a modelvalidation but i don't think this is possible so i tried putting my object in the form and then validate the form. but it always returns false and i

Re: [symfony-users] Re: isValid always showing false

2010-04-20 Thread Gareth McCumskey
You need to bind posted values to the form object for isValid() to run the validation checks. Assuming form_values is a form array where each field in the form is named as name=form_values[fieldname] then this is how: $form_object = new FormObject();

[symfony-users] Re: Default culture in routing

2010-04-20 Thread Tom Ptacnik
I think you'll have to create two routes for every action - one for pl language (without pl in URL) and one for other languages (with language in URL) On 18 dub, 20:16, Tomasz Ignatiuk tomek.ignat...@gmail.com wrote: Hi I use i18n in symfony 1.4 My default culture is pl (set in

[symfony-users] Re: Handle form error in the action

2010-04-20 Thread WallTearer
Aaaargh, I've created custom PostValidator, but when I'm throwing my custom exception from that post validator, symfony catches it first, and I can not catch it in the action. I've tried to create custom exception class that extends sfValidatorError class (class sfValidatorLicenseError extends

[symfony-users] Re: Handle form error in the action

2010-04-20 Thread Marijn
$form-getErrorSchema() contains all validation errors thrown On Apr 20, 2:55 pm, WallTearer walltea...@gmail.com wrote: Aaaargh, I've created custom PostValidator, but when I'm throwing my custom exception from that post validator, symfony catches it first, and I can not catch it in the

[symfony-users] kerberos/ldap - sfGuardPlugin ?

2010-04-20 Thread jaubry
Hi everybody, For my project, i have to use kerberos/ldap to authenticate the users accessing the application. I created the necessary tables : user, profile, ... instead of using the plugin sfGuardPlugin. I made this choice because the user table is minimalist (only a user_id, profile_id and a

[symfony-users] Re: isValid always showing false

2010-04-20 Thread john
If you want to validate your existing objects, you can bind the form with the defaults. On Apr 20, 12:34 pm, kim thechosendra...@gmail.com wrote: I want to validate my object cause these will not be given in by a form but by URL (cause the frontend requires this) so actualy i want a

[symfony-users] Re: foreign key relations in admin generator

2010-04-20 Thread SatBoy78
Hi I've tried to use your suggestions to solve a similar problem that I have with my application, but when I am in the backend_dev I can't see the text label: there is a strange text pre Doctrine_Collection data : Array( 0 : Object(ZoneCitta) ) /pre do you know the meaning of that string? I've

[symfony-users] brackets in doctrine

2010-04-20 Thread kim
hi i have to nest some or / and conditions but i need brackets in my sql statement to do it in the right order but how do you make this is thould be in this form (... OR ...) AND ... thnx greetings -- If you want to report a vulnerability issue on symfony, please send it to security at

Re: [symfony-users] Re: foreign key relations in admin generator

2010-04-20 Thread Arnold Ispan
Can you provide more info about your problem so i can try to help you with your problem On Tue, Apr 20, 2010 at 5:19 PM, SatBoy78 bruno.mat...@gmail.com wrote: Hi I've tried to use your suggestions to solve a similar problem that I have with my application, but when I am in the backend_dev I

[symfony-users] frontend: get labels (not id) from child tables

2010-04-20 Thread SatBoy78
Hi I am developing a project with symfony (doctrine) and I am encountering some problems in retrieving data from child0tables; I'll explain the whole question: in my mysql db I have a main table that contains foreign key of some child tables. I've created symfony modules on these tables, and

[symfony-users] Re: brackets in doctrine

2010-04-20 Thread kim
I solved it now by doing this ... AND ... OR ... AND ... this works for now but i'm still wondering how you can do functionality like with the brackets On 20 apr, 15:24, kim thechosendra...@gmail.com wrote: hi i have to nest some or / and conditions but i need brackets in my sql statement to

[symfony-users] Re: Jquery and AJAX symfony 1.4

2010-04-20 Thread Thor
I suggest you to use jQueryReloaded plugin, it works greatly, and what you need is simply done by a helper like link_to_remote On 19 Apr, 19:58, trankh juliend1...@gmail.com wrote: Hello, I want to call a simple action without passing any argument inside a jquery function. No argument

[symfony-users] Re: Jquery and AJAX symfony 1.4

2010-04-20 Thread Thor
I suggest you to use jQueryReloaded plugin, it's really simple to use that, and what you need is done with a helper like link_to On 19 Apr, 19:58, trankh juliend1...@gmail.com wrote: Hello, I want to call a simple action without passing any argument inside a jquery function. No argument

[symfony-users] Re: Handle form error in the action

2010-04-20 Thread WallTearer
But how can I check if the needed error happened? Loop through the array of validation errors and check if the error was triggered by the needed Validator? Hope this is not the only way -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com

[symfony-users] Re: foreign key relations in admin generator

2010-04-20 Thread SatBoy78
I've got these tables: Ristorante: connection: doctrine tableName: ristorante columns: id: type: integer(4) fixed: false unsigned: false primary: true autoincrement: true nome: type: string(100) fixed: false unsigned: false

Re: [symfony-users] Re: Jquery and AJAX symfony 1.4

2010-04-20 Thread DEEPAK BHATIA
Yes I have done the same and it works great, On Tue, Apr 20, 2010 at 8:16 PM, Thor thorste...@gmail.com wrote: I suggest you to use jQueryReloaded plugin, it works greatly, and what you need is simply done by a helper like link_to_remote On 19 Apr, 19:58, trankh juliend1...@gmail.com wrote:

[symfony-users] Re: Handle form error in the action

2010-04-20 Thread Richtermeister
Just throw a custom extension that doesn't extend sfValidatorError. After all, you are trying to break outside the form, so it's legitimate to use exceptions that transcend the form framework. Daniel On Apr 20, 7:52 am, WallTearer walltea...@gmail.com wrote: But how can I check if the needed

Re: [symfony-users] Re: brackets in doctrine

2010-04-20 Thread Daniel Lohse
-where('column1 = ? AND (column2 = ? OR column3 = ?)', array(1, 2, 3)); Just nest them inside one where clause. :) Sent from my iPhone On Apr 20, 2010, at 4:34 PM, kim thechosendra...@gmail.com wrote: I solved it now by doing this ... AND ... OR ... AND ... this works for now but i'm still

[symfony-users] Symfony 1.4 - sfOutputEscaperObjectDecorator::__toString()

2010-04-20 Thread Dale Attree
Hi everyone, I downloaded Symfony 1.4.4 from SVN and did the setup as per the tutorial. When I try to access any of my modules, I get the following: Fatal error: Method sfOutputEscaperObjectDecorator::__toString() must not throw an exception in /project/apps/manager/templates/layout.php on

[symfony-users] Re: sfDoctrineActAsTaggablePlugin Unknown method Video::addTag

2010-04-20 Thread Poltasi Risom
Try in schema.yml Video: actAs: Timestampable: ~ Taggable: ~ columns: then rebuild all On Apr 20, 11:45 am, comb sa...@gmx.net wrote: Hi! I'm trying to get sfDoctrineActAsTaggablePlugin working with symfony 1.4.4. First the plugin-install task doesn't exist, but it was renamed

[symfony-users] How to stop doctrine creating tables for a single model?

2010-04-20 Thread sromano88
Hi John, I am facing the same problem you stated in How to stop doctrine creating tables for a single model? I can''t get the solution, and I think that stop executing build-all- reload should be a good one when you are telling not to export that model. Hope you can give me a hand. Best

[symfony-users] Level problem (public/protected) of setupInheritance() with Doctrine form generator

2010-04-20 Thread Yoann BRIEUX
Hello guys ! In using the inherit of doctrine with sfDoctrineGuard plugin, I get this error: * **Bonjour, En voulant hériter d'une classe de sfDoctrineGuard grâce à l'héritage de doctrine, j'obtiens cette erreur :* Fatal error: Access level to BaseecfdbGuardGroupForm::setupInheritance() must

[symfony-users] Redirecting urls with final /

2010-04-20 Thread Marc Dos Santos
Hello all, I discovered recently that some of my users are getting 404 on my website because the are adding a final / to the url. So i was wondering if there was a way in symfony to define automatic 301 to remove the final slash, in other word to redirect urls like www.test.com/cat1/product/ or

Re: [symfony-users] How to stop doctrine creating tables for a single model?

2010-04-20 Thread Alexandru-Emil Lupu
Hi! You can add: YourModel: options: symfony: model: false sent via htc magic On Apr 20, 2010 8:07 PM, sromano88 sroman...@gmail.com wrote: Hi John, I am facing the same problem you stated in How to stop doctrine creating tables for a single model? I can''t get the solution, and I

[symfony-users] Re: sfGridPlugin, Propel/Doctrine-DataSources, ObjectPaths and JavaScript (ExtJS) extensions

2010-04-20 Thread Leon van der Ree
Hi developers, as you might have guessed, I am not working on the sfGrid components solely to provide them to the community ;) What I would like, is to get feedback to improve the quality of these components, while everyone can benefit. At the moment I am working on/playing with the

[symfony-users] Re: symfony + doctrine + memcached + lazy loading

2010-04-20 Thread soulfly
seems that everybody ignore me :( -- 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

Re: [symfony-users] Re: symfony + doctrine + memcached + lazy loading

2010-04-20 Thread Stéphane
Hi, It's not about ignoring you, it's about time and knowledge, please don't think it's about yourself or your specific problem as we are all concerned ;-) Can you try with another cache strategy, ie APC or XCACHE to see if you have the same behavior ? By lazy loading, you mean hydrated objects

[symfony-users] Re: sfGridPlugin, Propel/Doctrine-DataSources, ObjectPaths and JavaScript (ExtJS) extensions

2010-04-20 Thread Leon van der Ree
Hi developers, as you might have guessed, I am not working on the sfGrid components solely to provide them to the community ;) What I would like, is to get feedback to improve the quality of these components, while everyone can benefit. At the moment I am working on/playing with the

[symfony-users] Re: symfony + doctrine + memcached + lazy loading

2010-04-20 Thread soulfly
Hi! You are right about lazy loading, object tries to get DicMetroLines from DB, but it ALREADY HAVE it in returned query. Let me try to explain what I mean by lazy loading. An object have property that related to another model. And this property (DicMetroStations model) is returned with full

[symfony-users] parsing the request

2010-04-20 Thread Leon van der Ree
Hi developers, as you might have guessed, I am not working on the sfGrid components solely to provide them to the community ;) What I would like, is to get feedback to improve the quality of these components, while everyone can benefit. At the moment I am working on/playing with the

Re: [symfony-users] Re: symfony + doctrine + memcached + lazy loading

2010-04-20 Thread Stéphane
Try to debug it (hope you have xdebug) to find if after querying db, the hydrated object has its references array property not empty and containing what it should (according to the query). $query = //your query code $objectCollection = $query-execute(); $object = $objectCollection-getFirst();

Re: [symfony-users] Re: symfony + doctrine + memcached + lazy loading

2010-04-20 Thread Yelena Bunina
Yes it have it! I didn't tell you about it. But anyway it send query to DB (( On Tue, Apr 20, 2010 at 10:28 PM, Stéphane stephane.er...@gmail.com wrote: Try to debug it (hope you have xdebug) to find if after querying db, the hydrated object has its references array property not empty and

Re: [symfony-users] Re: symfony + doctrine + memcached + lazy loading

2010-04-20 Thread Stéphane
Email was not complete ? Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Tue, Apr 20, 2010 at 9:19 PM, Yelena Bunina yelena...@gmail.com wrote: Yes it have it! I didn't tell you about it. But anyway it send

Re: [symfony-users] Re: symfony + doctrine + memcached + lazy loading

2010-04-20 Thread Yelena Bunina
No. That's all. Object has this property if I fetch it with ...$q-fetchOne(); it displays an empty page when I try to var_dump or print_r the whole object even it has one record. so I think object in pager has that property too, but somehow it send query to DB. I don't understand why. On Tue,

[symfony-users] Re: sfGridPlugin, Propel/Doctrine-DataSources, ObjectPaths and JavaScript (ExtJS) extensions

2010-04-20 Thread Leon van der Ree
Hi developers, as you might have guessed, I am not working on the sfGrid components solely to provide them to the community ;) What I would like, is to get feedback to improve the quality of these components, while everyone can benefit. At the moment I am working on/playing with the

Re: [symfony-users] Re: symfony + doctrine + memcached + lazy loading

2010-04-20 Thread Stéphane
Don't var_dump or print_r such object :-) The query ran inside mysql (copy/past from webdebugtb) returns expected result ? If yes, dig into that array property to look the Doctrine_collection and if it does contains records, this way dig until the one you want to see if every object is well

Re: [symfony-users] frontend: get labels (not id) from child tables

2010-04-20 Thread Eno
On Tue, 20 Apr 2010, SatBoy78 wrote: Hi I am developing a project with symfony (doctrine) and I am encountering some problems in retrieving data from child0tables; I'll explain the whole question: in my mysql db I have a main table that contains foreign key of some child tables. I've

[symfony-users] Re: sfDoctrineActAsTaggablePlugin Unknown method Video::addTag

2010-04-20 Thread comb
Thanks for answering.. unfortunately this fails during the doctrine:build -all task: r...@r-pc D:\xampp\htdocs\pen4\pen4 # symfony doctrine:build --all --and-load --no-confirmation doctrine Dropping doctrine database doctrine Creating dev environment doctrine database doctrine generating

[symfony-users] Re: sfGridPlugin, Propel/Doctrine-DataSources, ObjectPaths and JavaScript (ExtJS) extensions

2010-04-20 Thread Leon van der Ree
Hi developers, as you might have guessed, I am not working on the sfGrid components solely to provide them to the community ;) What I would like, is to get feedback to improve the quality of these components, while everyone can benefit. At the moment I am working on/playing with the

[symfony-users] Re: sfDoctrineActAsTaggablePlugin Unknown method Video::addTag

2010-04-20 Thread comb
I got it to work: I downloaded (instead of svn checkoutthe) the plugins tgz with the Download package-Link from the plugins-page http://www.symfony-project.org/plugins/sfDoctrineActAsTaggablePlugin Than the plugin:install works. The templates: [Taggable] still fails with a Unknown method

[symfony-users] Re: brackets in doctrine

2010-04-20 Thread kim
oh sorry now i see i didn't mention it has to be done in doctrine so this must be something like createQuery()-where...-andWhere...-andAlso of course your right to do this like you say in normal SQL but adding this brackets is not possible in doctrine (or at least i don't know the way to do

[symfony-users] Re: sfGridPlugin, Propel/Doctrine-DataSources, ObjectPaths and JavaScript (ExtJS) extensions

2010-04-20 Thread Leon van der Ree
I Don't know what was wrong with google groups, now my message is posted, 5 times... I haven't got the righs to remove any of them either, so sorry about that. Reading one of 5 should be enough ;) -- If you want to report a vulnerability issue on symfony, please send it to security at

[symfony-users] Re: configuration problem!?

2010-04-20 Thread Andz
It reports no problematic issues http://pastie.org/926961 On Apr 19, 9:52 am, Tom Ptacnik to...@tomor.cz wrote: What about symfony check_configuration.php script? On 15 dub, 14:38, Andris andris.ve...@gmail.com wrote: When issuing command: symfony propel:data-load it fails with notice

[symfony-users] Re: installation problem with php_posix extension

2010-04-20 Thread Andz
1. I think php_posix is not available for windows 2. You are looking for command line interface - press Run and fill in cmd or locate it in Accesories Command Prompt On Apr 19, 2:55 pm, i...@ticktockit.net i...@ticktockit.net wrote: During my configuration check I get the following:

[symfony-users] Re: performance problem with sfDoctrinePage on symfony 1.2

2010-04-20 Thread Tom Ptacnik
Which line of code causes this performance problems? On 19 dub, 17:20, mehdi hadef mehdi.ha...@gmail.com wrote: Hi all, I have a performance problem on a page using sfDoctrinePager. It takes more than 5 seconds to display the page on local server. Let's see the code in my actions.class