[symfony-users] Re: How to execute a stored procedure on a remote db server throught symfony?

2009-10-01 Thread Gareth McCumskey
Stored procedures, while seemingly convenient, are actually not a good idea if you want to ensure your application remains properly database abstracted/agnostic. Stored procedures are in most cases not transferable between database type. For example, MySQL handles stored procedures very

[symfony-users] Re: Out of memory everywhere /slow page response

2009-10-01 Thread Gareth McCumskey
We in fact have a site that has over 1000 users and processes millions of database records daily with no major memory issues. @OP: You mentioned that caching was turned off during your test. Well, I hate to break it to you, but the cache is there for a reason. The memory consumption is very large

[symfony-users] iCalender Plugin in Symfony

2009-10-01 Thread DEEPAK BHATIA
Hi, Do we have iCalender Plugin in Symfony ? Or if somebody has put iCalender support in there symfony project ? Thanks Deepak --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this

[symfony-users] Re: jobeet tutorial data model problem

2009-10-01 Thread ereallstaff
I know, I had also same problem. I can say to you that yaml files are very hard taste expecially at the beginning. yesterday I was going fool for same reason: after I did that way , I copied and pasted code of specific lesson from the svn repository ( you can navigate from here :

[symfony-users] Re: jobeet tutorial data model problem

2009-10-01 Thread Gareth McCumskey
As this says: schemaputting /home/grkn/public_html/...eet/ config/generated-schema.xml it succesfully parsed and wrote your xml file from the yml, thats not the problem, however: Error initializing nested element isset [wrapped: OrCondition (unknown) doesn't support the 'isset'

[symfony-users] Re: jobeet tutorial data model problem

2009-10-01 Thread gurkanoluc
No but lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/ build.xml has 3 isset tags. I thing they are important for generation tool because when i comment them it didn't work. On Oct 1, 12:19 pm, Gareth McCumskey gmccums...@gmail.com wrote: As this says: schema    putting

[symfony-users] Re: What's the best way for...

2009-10-01 Thread Stefano Sancese
David thanks for your reply. On 30 Set, 22:03, david da...@inspiredthinking.co.uk wrote: Option 4 - can be a random string used for an id or an integer   representing state: 0 (default) not processed, -1 processed already and 1   for pending. Can there be more than 1 set of records pending

[symfony-users] Symfony Super Cache in 1.2

2009-10-01 Thread Stephen Melrose
Hey people, We recently launched a Symfony website in 1.2 that is experiencing a very high load of traffic, and it's beginning to cripple our web server with an average processor usage of about 80-90%. We've been doing some tests, and even with pages that are cached with the layout, the

[symfony-users] Re: sfGrid and Custom query

2009-10-01 Thread E_lexy
@ floria: you're right, but there problem is no less ;-) I have tried doctrine, but the problem remains the same. When you have a non-hydratable field in your query, you cannot use sfDatasourcePropel/Doctrine, because the results gets hydrated toward a model. So I tried the sfDatasourceArray

[symfony-users] Re: jobeet tutorial data model problem

2009-10-01 Thread Gareth McCumskey
Perhaps a good idea is to run php lib/vendor/symfony/data/bin/check_configuration.php And see if that helps you identify anything that may be missing that symfony requires. On Thu, Oct 1, 2009 at 12:25 PM, gurkanoluc gurkano...@gmail.com wrote: No but

[symfony-users] Re: sfGrid and Custom query

2009-10-01 Thread Gareth McCumskey
Class Idea has no method called getideaRelationId Should your getter not be getIdeaRelationId ... note the case of that i after the get. Perhaps in your code you are calling the method with bad case On Mon, Sep 7, 2009 at 11:34 AM, E_lexy alexk...@gmail.com wrote: I am trying to use sfGrid

[symfony-users] Re: Symfony Super Cache in 1.2

2009-10-01 Thread Gareth McCumskey
Are you using a memory caching tool such as APC cache, EAccelerator, etc ? This can dramatically affect the performance issues you mention On Thu, Oct 1, 2009 at 1:07 PM, Stephen Melrose step...@sekka.co.uk wrote: Hey people, We recently launched a Symfony website in 1.2 that is experiencing

[symfony-users] Re: Are there any good solution to implement instant webpage translation?

2009-10-01 Thread Gareth McCumskey
What about passing all the text to Google translate in one go? You can parse through the html generated, grab the blocks and add each as an element to an array. using implode() you can create string delimited array (csv style) to then send off to Google translate, get the results back and stick

[symfony-users] Re: Separating Presentation from Symfony

2009-10-01 Thread Gareth McCumskey
I hope this isn't because you are generating HTML inside your actions or model and passing it to the view to render that way? Then I could understand a non-symfony/PHP person being scared to work with symfony's template. One of the strenghts of symfony, if you follow best practices of HTML only in

[symfony-users] Re: sfGrid and Custom query

2009-10-01 Thread E_lexy
Hi all, @Gareth, The class doesn't have this method because the column is the result of an aggregate function in the Doctrine_query I have found a solution for the doctrine way, I guess it will be more or less the same for Propel. Don't know if it is the nicest way, feel free to comment The

[symfony-users] Re: sfGrid and Custom query

2009-10-01 Thread Gareth McCumskey
I didn't realise you were using Doctrine. I have been using Propel pretty much exclusively myself when I get into symfony at 1.0. My thinking is that a solution for Propel would be to just create that method in the tables model class to catch calls to that column and return what the result should

[symfony-users] Re: sfGrid and Custom query

2009-10-01 Thread alex knol
Gareth, That's what I tried at first too, but what if you cannot get data from this because it's an aggregate function based on a parameter Then you would have to look in the criteria (in the propel case) or DQL (in the case of doctrine) to see if the alias is defined and you can count on

[symfony-users] Re: Doctrine Blamable Extension

2009-10-01 Thread david
I've used the other extensions there without problems. Create an lib\extensions\Blamable folder and then extra or co the doctrine extension to it. Then just use it as you would any other behavior with: actAs: Blamable On Thu, 01 Oct 2009 01:57:36 +0200, Michael Sullivan

[symfony-users] Re: Out of memory everywhere /slow page response

2009-10-01 Thread Crafty_Shadow
I'm sorry, but I just couldn't let this go: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 83 bytes) in /var/www/1.2/lib/config/ sfAutoloadConfigHandler.class.php on line 115 ...quadcore x3360, x64bit linux, 8gb ram, 1333fsb, 1 rpm disks, 512 mb for php

[symfony-users] Schema.yml issue

2009-10-01 Thread Hart
Hello, I have a big issue with doctrine, when I try to use the command : symfony doctrine:build-all-reload with this schema : http://pastie.textmate.org/private/sz8et91npvpulpjkxp0nvq all run without problems. But when i modify this schema in :http://pastie.textmate.org/private/

[symfony-users] Re: Symfony Super Cache in 1.2

2009-10-01 Thread Mariusz Sasinski
We've been doing some tests, and even with pages that are cached with the layout, the overhead Symfony produces is phenomenal compared to just reading a file from the server. Well, it's hard to expect symfony to be as fast as a static html file First of all you need to have XCache or APC

[symfony-users] Re: How to execute a stored procedure on a remote db server throught symfony?

2009-10-01 Thread Farrukh Abbas
yeah thanks for the heads up ... i don't have a choice, my application has to interact with a third party service and the only way they provide is through stored procedures ... so really don't have a choice ... any pointers to where i can get some good read about propel custom queries? and also

[symfony-users] sfDoctrineActAsTaggablePlugin

2009-10-01 Thread Daniel Londero
Hi guys, I'm trying tu use sfDoctrineActAsTaggablePlugin but I don't know how to embed it in the right way in my forms. I've tried to embed TagForm in a form of a Taggable object but it saves tags only on tag table instead of saving data also on tagging table. Are there any examples on how to

[symfony-users] spl support: undefined function spl_autoload_register()

2009-10-01 Thread lorenx
hi all, i'm new to symfony. during the installation process, from the command line: # php lib/vendor/symfony/data/bin/symfony -V Fatal error: Call to undefined function spl_autoload_register() in / lan/http/symfony/lib/vendor/symfony/lib/autoload/ sfCoreAutoload.class.php on line 69 so i

[symfony-users] simple one to many relationship

2009-10-01 Thread Ashok
Hi, I've two tables Post and Comment (1:N relationship). What I'm trying to get all the comments related to the post I'm saving from within Post class (/lib/model/doctrine/Post.class.php. and Yes I'm overriding save() function). I don't get any results by calling $this-getComments (); Am I doing

[symfony-users] Do anyone know this error? It happened when i use command: symfony:build-sql

2009-10-01 Thread Vũ Văn Thanh
C:\development\sfprojects\jobeetsymfony doctrine:build-model doctrine generating model classes C:\development\sfprojects\jobeetsymfony doctrine:build-sql doctrine generating sql for models Warning: class_parents(): Class C does not exist and could not be loaded in C:\d

[symfony-users] Re: simple one to many relationship

2009-10-01 Thread Dheeraj Kumar Aggarwal
hi i think, you have done something wrong in overriding the save function. firstly execute a raw query at the database client like mysql whatever your database is. your query will look like select * from comment where post_id = ?; if it returns something then you have done something wrong in

[symfony-users] Re: simple one to many relationship

2009-10-01 Thread Ashok
No, the query works just fine not only in mysql query browser but also in other part of the application. And there is nothing wrong with overriding the save as I've done nothing other than: print_r($this- getComments()). I've confirmed with the Jobeet tutorial on how to override the save method.

[symfony-users] Re: simple one to many relationship

2009-10-01 Thread Casey
In Doctrine you typically access relations by using the format $this- Comments , as if it were a datamember, and you will get a Doctrine_Collection back. I don't know if getComments() works in doctrine, thats how you would do it Propel though. In Doctrine the get*() syntax is used for getting

[symfony-users] Re: About embed forms

2009-10-01 Thread Abraham Montilla
elkrema, if you have I have an Opinion with many Features then the right schema is Feature is: id, opinion_id, desc OpinionFeature is: opinion_id, score that's why you have an integrity constraint violation I don't know how i missed that first time i read your post hehe, that's all the

[symfony-users] Re: Component- Templating

2009-10-01 Thread Richtermeister
I'll take that :) Because Zend feels like Symfony after you drop it from 100feet into little bits that need sketchy re-assembly. I feel your pain ;) Daniel On Sep 30, 1:05 pm, Eno symb...@gmail.com wrote: On Wed, 30 Sep 2009, ProdigitalSon wrote: If you get around to plugging it in to 1.3

[symfony-users] Re: jobeet tutorial data model problem

2009-10-01 Thread gurkanoluc
My computer can cause this problem because i changed my distro to ubuntu but it gives the same error :( On Oct 1, 3:28 pm, Gareth McCumskey gmccums...@gmail.com wrote: Perhaps a good idea is to run php lib/vendor/symfony/data/bin/check_configuration.php And see if that helps you identify

[symfony-users] Re: spl support: undefined function spl_autoload_register()

2009-10-01 Thread ProdigitalSon
I assume you restarted the server? Did you clear symfony cache? On Sep 30, 4:21 pm, lorenx lor...@gmail.com wrote: hi all, i'm new to symfony. during the installation process, from the command line: # php lib/vendor/symfony/data/bin/symfony -V Fatal error: Call to undefined function

[symfony-users] Re: jobeet tutorial data model problem

2009-10-01 Thread gurkanoluc
I solved problem. Thanks for your help :) On Oct 1, 10:08 pm, gurkanoluc gurkano...@gmail.com wrote: My computer can cause this problem because i changed my distro to ubuntu but it gives the same error :( On Oct 1, 3:28 pm, Gareth McCumskey gmccums...@gmail.com wrote: Perhaps a good idea

[symfony-users] JobeetJobTable class vs JobeetJob class

2009-10-01 Thread Keith
I'm working through the Jobeet tutorial to learn 1.2 after a long hiatus from Symfony. What is the difference between the ModelTable and the Model class in the model/doctrine/ directory? When is it appropriate to use each? I'm assuming it has something to do with how requests are processed and

[symfony-users] Re: JobeetJobTable class vs JobeetJob class

2009-10-01 Thread Gábor Fási
You use the Model class when dealing with a single element - like a blog entry, or a blog comment; and you use the ModelTable class when dealing with the table - like when you retrieve some records from it. When retrieving items via the ModelTable class, you get a collection of Model objects. On

[symfony-users] Re: JobeetJobTable class vs JobeetJob class

2009-10-01 Thread Keith
That makes sense. Interesting that it's split up like that rather than all being in a single model class, but interesting nevertheless. On Oct 1, 4:48 pm, Gábor Fási maerl...@gmail.com wrote: You use the Model class when dealing with a single element - like a blog entry, or a blog comment;

[symfony-users] Re: Symfony Super Cache in 1.2

2009-10-01 Thread Pablo Godel
Hi Stephen, Please contribute it if you can, or write a blog post about it. Thanks Pablo On Thu, Oct 1, 2009 at 6:07 PM, Stephen Melrose step...@sekka.co.uk wrote: We're using APC, and it's a propel project. Still super duper slow! I ended up writing my own mini version of sfSuperCache