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

2009-10-01 Thread Stephen Melrose
It certainly needs some work, but as and when I have something I'm confident with, I'll get it on our company blog. Here's the URL if you wanna grab the RSS, http://blog.madebypi.co.uk/ Thanks again for the replies guys! Steve On 2 Oct 2009, at 02:49, Pablo Godel wrote: > Hi Stephen, > >

[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 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 that bypasses > Sym

[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 wrote: > You use the Model class when dealing with a single element - like a > blog entry, or a blog comment; and you use the Mod

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

2009-10-01 Thread Stephen Melrose
We're using APC, and it's a propel project. Still super duper slow! I ended up writing my own mini version of sfSuperCache that bypasses Symfony, but at the same time uses Symfony's cache. It is about 5ms slower than serving a static HTML file. Quite impressed with myself. Might release it as a

[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] 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: jobeet tutorial data model problem

2009-10-01 Thread gurkanoluc
I solved problem. Thanks for your help :) On Oct 1, 10:08 pm, gurkanoluc 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 wrote: > > > Perhaps a good idea is to run > > > php lib/vendor/sym

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

[symfony-users] Re: Component- Templating

2009-10-01 Thread ProdigitalSon
Haha... more or less my stance. Its not that Zend is horrible - its just that it is lacking most of the time saving "magic" I've been spoiled with by Symfony and Django. Then again the lead developer is against "magic", which means we are spending a lot of time implementing a lot of things when w

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

[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 wrote: > On Wed, 30 Sep 2009, ProdigitalSon wrote: > > If you get around to plugging it in to 1.3 id love to see

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

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

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

[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\jobeet>symfony doctrine:build-model doctrine generating model classes C:\development\sfprojects\jobeet>symfony doctrine:build-sql doctrine generating sql for models Warning: class_parents(): Class C does not exist and could not be loaded in C:\d evelopment\sfprojects

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

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

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

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

[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/ iwcy8p7ht4uhhgspwh

[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

[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 wrote: > Has an

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

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

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

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

[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 wrote: > > Hey people, > > We recently launched a Symfony website in 1.2 that is experiencing a > very high l

[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 wrote: > > I am trying to use sfGrid based on a cust

[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 wrote: > > No but lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/ >

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

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

[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 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 at the same time? No, onl

[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 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 wrote: > As this says: > > >> schema    putting /home/grkn/public_html/...eet/ > >

[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 [wrapped: OrCondition (unknown) doesn't support the 'isset' creator/adder

[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 : http://svn.jobee

[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