[symfony-users] Optimize Doctrine Generated Admin

2010-11-05 Thread bkuberek
Hi all, I'm having a big problem with the admin generated for my models. Lets say I have photos, categories and slots and they're all many to many except photos don't have slots. So its like Categories <--> Photos Categories <--> Slots When I first generated the admin, it was pretty fast. But no

[symfony-users] Defining an object [alias]?

2010-11-05 Thread xpanshun
Okay this may be the dumbest inquiry ever but I can't find any references to help me. In regards to the foreach statement () used in some of the default templates... Clearly this is a loop, but the part reading $products as $product, what does that exactly mean? I am assuming that $product is an

Re: [symfony-users] Re: More DQL query help

2010-11-05 Thread Alex Pilon
Word, glad I could help. On Nov 5, 2010 7:18 PM, "xpanshun" wrote: IT WORKED!!! You are so awesome! :) I was putting single quotes around the searchterm part instead of double quotes...Thank you!! :D On Nov 5, 7:00 pm, Alex Pilon wrote: > You still need the like.. > $q->andWh... > On

[symfony-users] Re: More DQL query help

2010-11-05 Thread xpanshun
IT WORKED!!! You are so awesome! :) I was putting single quotes around the searchterm part instead of double quotes...Thank you!! :D On Nov 5, 7:00 pm, Alex Pilon wrote: > You still need the like.. > $q->andWhere("c.col like ?", "%$search%"); > > The percents are wildcards and will match

Re: [symfony-users] Re: More DQL query help

2010-11-05 Thread Alex Pilon
You still need the like.. $q->andWhere("c.col like ?", "%$search%"); The percents are wildcards and will match other characters on either side of the search term. On Nov 5, 2010 6:50 PM, "xpanshun" wrote: I tried it like this, $q = Doctrine_Query::create() ->from('Product p') ->where('p.produ

[symfony-users] Re: More DQL query help

2010-11-05 Thread xpanshun
I tried it like this, $q = Doctrine_Query::create() ->from('Product p') ->where('p.product_id = ?', $search_term) ->orWhere('p.product_full_desc LIKE ?', '%$search_term%') ->orWhere('p.product_partial_desc LIKE ?', '%$search_term%') ->orWhere('p.product_type = ?', $search_term); But it still didn

Re: [symfony-users] Re: More DQL query help

2010-11-05 Thread Alex Pilon
I mean for the LIKE clause.. so what happens is if you do t.column LIKE '%$searchTerm%'; this will check for the search term within the content of the column. The dql rules are the same as the sql rules if you want to check that out on mysql.com On Fri, Nov 5, 2010 at 18:31, xpanshun wrote: > I

[symfony-users] Re: More DQL query help

2010-11-05 Thread xpanshun
Isn't that for when you want to go through all of the columns in the database? I only wanted to look through the particular ones above... On Nov 5, 6:01 pm, Alex Pilon wrote: > You need to use wildcards > > On Nov 5, 2010 5:55 PM, "xpanshun" wrote: > > Hi everyone, > > I am trying to return any

Re: [symfony-users] More DQL query help

2010-11-05 Thread Alex Pilon
You need to use wildcards On Nov 5, 2010 5:55 PM, "xpanshun" wrote: Hi everyone, I am trying to return any record from the database where a certain word (stored in variable $searchterm) is used (within a few different fields)... Here is what I have: $q = Doctrine_Query::create() ->from('Prod

[symfony-users] More DQL query help

2010-11-05 Thread xpanshun
Hi everyone, I am trying to return any record from the database where a certain word (stored in variable $searchterm) is used (within a few different fields)... Here is what I have: $q = Doctrine_Query::create() ->from('Product p') ->where('p.product_id = ?', $search_term) ->orWhere('p.product_

Re: [symfony-users] Re: Is this a normal behavior ? 45.54% doing gettimeofday

2010-11-05 Thread Alexandre Salomé
Sure, this is not a normal behavior. This is not the first time that this test was made, already discussed on newsgroup. but nobody never find the reason why. Personaly, I think that framework is covered enough, and such bottleneck would be identified. I think that test environment is the reason

[symfony-users] Symfony2 support multi apps

2010-11-05 Thread Michael
How can i set a Symfony2 application to support multi application (subdomains). is there a way in the rounding I can difference between each one. for example: set the NewsBundle "\" to point NewsBundle:Default:index, and AboutBundle "\" to point to AboutBundle:Default:index -- If you want to rep

Re: [symfony-users] [Symfony 2] General Questions

2010-11-05 Thread Gustavo Adrian
@Richard: Yes, i think I'll go that way. Using the latest git version and keep updating, while keeping an eye on the dev list. As you say, I'll learn a lot about Symfony's internals on the way. I agree that it will be a big challenge, but I think that's how the greatest apps differ from the rest, t

Re: [symfony-users] [Symfony 2] General Questions

2010-11-05 Thread Fabien Potencier
Documentation for the master is here: http://docs.symfony-reloaded.org/master/ Fabien -- Fabien Potencier Sensio CEO - symfony lead developer sensiolabs.com | symfony-project.org | fabien.potencier.org Tél: +33 1 40 99 80 80 On 11/5/10 3:46 PM, Gustavo Adrian wrote: Hi, I'll use Symfony 2 fo

Re: [symfony-users] [Symfony 2] General Questions

2010-11-05 Thread Richard D Shank
I would just suggest that you keep an eye on https://github.com/fabpot/symfony and use that to keep things updated. I would say update as often as possible. I have found its easier to make incremental changes,plus, you get the added benefit of learning more about the internals of Symfony2. I

Re: [symfony-users] [Symfony 2] General Questions

2010-11-05 Thread Gustavo Adrian
Yes. I'm going to start two big projects at work that are going to be products, not just one time apps. So I want to use the latest version of Symfony because I plan to work in these apps the whole 2011 (and, with good luck, the next years too) and I want to use the latest tools I have at hand, but

Re: [symfony-users] [Symfony 2] General Questions

2010-11-05 Thread Alex Pilon
Any particular reason you need to use Symfony2? Its still in beta and isnt planned to be fully released until March... On Fri, Nov 5, 2010 at 10:46, Gustavo Adrian wrote: > Hi, > > I'll use Symfony 2 for my next project in my job. I was testing the sandbox > at home and the latest version at git

[symfony-users] [Symfony 2] General Questions

2010-11-05 Thread Gustavo Adrian
Hi, I'll use Symfony 2 for my next project in my job. I was testing the sandbox at home and the latest version at git too. What I would like is, obviusly, use the latest version because it has a lot of changes, in comparison with PR3, in terms of syntax, etc. This is a project that will be product

[symfony-users] Re: Question: The best way to embed javascript : in parial or in js files

2010-11-05 Thread Massimiliano Arione
On 4 Nov, 09:47, JoJo wrote: > As Gareth said, my concern is how to embed javascript function from partials > between ** tag. You're wrong from the start: javascript tag can be put anywhere in the html, and best place is in the bottom, just before body ends. So, you can simply call use_javascript

[symfony-users] Re: sending email from task through CLI

2010-11-05 Thread guiguiboy
Have you looked at the php.ini of your CLI ? Is the lib enabled (as in your php.ini in apache dir) ? On 5 nov, 14:15, Florian wrote: > If you're on windows, read this: > > http://vittoriop77.blogspot.com/2007/10/php-registered-stream-socket-... > > On 5 nov, 14:11, Florian wrote: > > > Another

[symfony-users] Re: sending email from task through CLI

2010-11-05 Thread Florian
If you're on windows, read this: http://vittoriop77.blogspot.com/2007/10/php-registered-stream-socket-transports.html On 5 nov, 14:11, Florian wrote: > Another question: did you run phpinfo() function from the cli ? > > php -a > > > phphinfo(); > > or php -r "phpinfo();" > > On 5 nov, 14:09, Flo

[symfony-users] Re: sending email from task through CLI

2010-11-05 Thread Florian
Another question: did you run phpinfo() function from the cli ? php -a > phphinfo(); or php -r "phpinfo();" On 5 nov, 14:09, Florian wrote: > It looks like the stream socket transport you're using doesn't exist. > > try with sslv3 or sslv2 encryption method: > >      transport: >         clas

[symfony-users] Re: sending email from task through CLI

2010-11-05 Thread Florian
It looks like the stream socket transport you're using doesn't exist. try with sslv3 or sslv2 encryption method: transport: class: Swift_SmtpTransport param: host: smtp.gmail.com port: 465 encryption: sslv3 username: x...@gmail.com

[symfony-users] Re: sfDoctrineGuard Logged User Time

2010-11-05 Thread Marcelo
Thanks for your help -- 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 symfony-users@googlegroups.com

Re: [symfony-users] sending email from task through CLI

2010-11-05 Thread Alex Pilon
What's your task code look like? On Nov 5, 2010 8:24 AM, "hribo" wrote: i would like to ask you for the way to send email from the task. i know there are plenty of discussions showing how to do it. but i have actually problem when i am sending my emails, and this error shows up: Warning: fsocko

[symfony-users] sending email from task through CLI

2010-11-05 Thread hribo
i would like to ask you for the way to send email from the task. i know there are plenty of discussions showing how to do it. but i have actually problem when i am sending my emails, and this error shows up: Warning: fsockopen(): unable to connect to ssl://smtp.gmail.com:465 (Unable to find the so

[symfony-users] "clean-model-files" for Propel?

2010-11-05 Thread Javier Garcia
Hi, when i try "build-all-load" i'm getting errors about models that doesn't exist any more in my schema. I know in doctrine i can use "clean-model-files" but in propel? Javier -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You rec

Re: [symfony-users] constraint violation: 1048 Column 'id' cannot be null

2010-11-05 Thread Jaime Merino Mora
I found it... http://trac.symfony-project.org/attachment/ticket/8650/i18n-1.4.patch El jue, 04-11-2010 a las 06:44 -0700, Jaime escribió: > Hi, > > i'm in trouble with the inserts on the generate-admin i18n forms. > Alway have the same error, > > "SQLSTATE[23000]: Integrity constraint violatio

[symfony-users] Re: Is this a normal behavior ? 45.54% doing gettimeofday

2010-11-05 Thread Elvis
xdebug was not enabled, and no other debug modules loaded. The first test was using a production server with nginx with phpfast- cgi, and the percent of the gettimeofday call was similar. The one below was on a server with apache. On Nov 3, 12:47 am, Alexandre Salomé wrote: > Isn't it because of

[symfony-users] Unable to insert fixtures : Unknown record property / related component "lucene_index" on "JobeetJob"

2010-11-05 Thread SCO
Bonsoir, J'ai dérivé de l'exemple Jobeet et avais mis en place la fonctionnalité de "Search" (sans l'Ajax) avec succès. Mais après l'intégration de sfGuard et sfApply, je n'arrive plus à inserer mes fixtures (ceci étant, je doute que ces deux plugons soit a l'origine du probleme) : t...@ubuntu:~/

Re: [symfony-users] Question: The best way to embed javascript : in parial or in js files

2010-11-05 Thread oscar balladares
A partial is what it is, just a piece of code that appears where you called it; you should have 1 .js file per action. Think about 4 partials for 1 action, it is better to have 1 js file to refer that action instead 4 js pieces of code. This is for sure an advice only ;) 2010/11/3 JoJo > Hello

Re: [symfony-users] RESTFul & etag

2010-11-05 Thread Gareth McCumskey
ETag is just a way to have finer grained control over caching and to manage when to reprocess a request or just send back a cached response. So for example, if you send a GET request for a resource with id 10 and get a result, sending a request later for id 10 should respond back with the cached ve