[symfony-users] Re: Fatal error: Call to a member function end() on a non-object in ... Hydrator/RecordDriver.php

2009-05-13 Thread David Ashwood
Hi Josh, The coffee is still sinking in - your schema appears to be incomplete - you reference Dictionary but it doesn't appear to exist (at least in the snippet you've provided). -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of

[symfony-users] Referencing periodically_call_remote

2009-05-13 Thread Gareth McCumskey
Hi all, Currently we are using the periodically_call_remote Javascript Helper. It essentially creates the Javascript for the Prototype PeriodicalExecuter class. Part of the Prototype class is a stop() method to stop the PeriodicalExecuter from continuing. However, what we need is a way to refer to

[symfony-users] Re: Search engine

2009-05-13 Thread James Cauwelier
It depends. What types of fulltext queries do you want to run? Do you need spelling correction, stemming, ...? Do you need the title to have a higher weight than the description? What type of content do you want to index (articles, books, products, ...)? What is the number of items you want t

[symfony-users] Re: Fatal error: Call to a member function end() on a non-object in ... Hydrator/RecordDriver.php

2009-05-13 Thread joshuacoady
You can safely delete the Dictionary relation to repeat the error though I finally figured this out ... there's some sort of naming collision because it doesnt like the foreignAlias of Data .. if I change that to Data2 it works as expected. On May 13, 2:06 am, "David Ashwood" wrote: > Hi Jo

[symfony-users] Re: Fatal error: Call to a member function end() on a non-object in ... Hydrator/RecordDriver.php

2009-05-13 Thread David Ashwood
Ok cool - so it's a reserved word. You can sometimes get around the reserved words (if you really want to and I wouldn't suggest it) by putting the word in []. -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of joshuacoady Sent: 13

[symfony-users] Re: Fatal error: Call to a member function end() on a non-object in ... Hydrator/RecordDriver.php

2009-05-13 Thread David Ashwood
Ah and these types of errors are usually due to issues with the schema definition - but I would have expected it to have appeared during the build-all-reload task. -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of joshuacoady Sen

[symfony-users] Re: Search engine

2009-05-13 Thread Mathieu Tricoire
Hi thanks for yours replies, I want to search on pages from article, where an article has some pages. For example this is a part of my schema : Category: columns: name: { type: string(255), notblank: true, unique: true ] Article: columns: title: { type: string(255), notblank: true }

[symfony-users] DbFinder returning too many columns when orderBy non-PK column

2009-05-13 Thread Phil Moorhouse
I seem to have found what looks like a bug in DbFinder, although it's possible I'm not using it correctly so I thought i'd ask here first before submitting a ticket. When I attempt to order by a non-PK column, it adds that column a second time to the returned assoc array as an uppercase value wit

[symfony-users] DbFinder, how to leftJoin with Where clause

2009-05-13 Thread Phil Moorhouse
I need to reproduce the following query with DbFinder. i'm using the results to build a list of checkboxes that will already be checked if they have a row in the relations table. SELECT et.event_type_id, et.name, etpni.news_item_id AS selected FROM event_types et LEFT JOIN event_types_per_n

[symfony-users] Re: DbFinder returning too many columns when orderBy non-PK column

2009-05-13 Thread David Ashwood
Try using an alias with the column and then ordering by the alias. The reason for the uppercase version is to allow for a case-insensitive sort. -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of Phil Moorhouse Sent: 13 May 2009 1

[symfony-users] Re: DbFinder returning too many columns when orderBy non-PK column

2009-05-13 Thread Phil Moorhouse
Using an alias fixed it, cheers. Interestingly this prevents it returning the extra column. $this->eventTypes = DbFinder::from('EventType') ->select(array('EventType.EventTypeId')) ->withColumn('EventType.Name', 'eventTypeName') ->withColumn('EventTypePerNewsItem.NewsItemId', 'selected')

[symfony-users] Re: DbFinder returning too many columns when orderBy non-PK column

2009-05-13 Thread David Ashwood
It's worth creating a ticket - just because it shouldn't create an empty column. -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of Phil Moorhouse Sent: 13 May 2009 13:10 To: symfony users Subject: [symfony-users] Re: DbFinder retu

[symfony-users] Google Accounts, OAuth, OpenID, AuthSub....What to, how to...

2009-05-13 Thread Sid Ferreira
Hi folks! Im celebrating my knowledge with symfony, this month, that allowed me to do amazing things in no time. For this, Im building up a small social network and now that I have all knowledge needed, Im just wandering: how to use Google Accounts or something like that with symfony? I've readed

[symfony-users] Re: Google Accounts, OAuth, OpenID, AuthSub....What to, how to...

2009-05-13 Thread David Ashwood
There's a rather cool OpenID plugin for SF 1.2 http://www.symfony-project.org/plugins/sfPHPOpenIdPlugin I've not tried it but have been waiting for an project to come along that will give me an excuse to. -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googl

[symfony-users] Re: Google Accounts, OAuth, OpenID, AuthSub....What to, how to...

2009-05-13 Thread Gareth McCumskey
I would say go with OpenID. It would be great if every web app out there used OpenID. Imagine a world with only one sign on for all sites. I'm dreaming I know but just imagine -Toddles off wistfully- On Wed, May 13, 2009 at 2:39 PM, David Ashwood wrote: > > There's a rather cool OpenID

[symfony-users] Re: Google Accounts, OAuth, OpenID, AuthSub....What to, how to...

2009-05-13 Thread Sid Ferreira
Yeah, Im in this too, Im just wandering: how to connect everything... checking out this plugin :D On Wed, May 13, 2009 at 09:42, Gareth McCumskey wrote: > I would say go with OpenID. It would be great if every web app out there > used OpenID. Imagine a world with only one sign on for all sites. I

[symfony-users] Admin Generator, Timestampable and I18N update

2009-05-13 Thread FlyLM [ML]
Hello, I use Admin Generator to allow Admin users to update the local part of an object. The shema's object is defined like below : ubCgu: actAs: Timestampable: ~ I18N: fields: [content] className: %CLASS%I18n columns: country_iso: { type:string(2), notnull:t

[symfony-users] PRISM 1.0 vs XSS - CSRF

2009-05-13 Thread roberto german puentes diaz
Hi to all. I want share a question: With Mozilla Prism, we can get a new layer security against XSS y CSRF**attack What do you think? Cheers -- Cr. Puentes Diaz MP 10.12726.9 Córdoba - Argentina www.puentesdiaz.com.ar/blog/ www.puentesdiaz.com.ar/blog/novedades www.puentesdiaz.com.ar/blog/cur

[symfony-users] sfguardplugin form sidebar

2009-05-13 Thread Hofferek Attila
Hi all, I made a component to display the login form statically on my sidebar, but when I type in wrong login info, the error message appears in the main div. How can I catch and move the sfguard outputs to my loginbox div? Thanks in davance -- Attila --~--~-~--~~~---

[symfony-users] Symfony-Doctrine Migrations and Branches

2009-05-13 Thread smnirven
Hey folks: I've recently started using doctrine migrations in a symfony1.1 setup - and I have a question I'd like to pose to the group. We have several developers working in different branches of our code base, with each potentially making their own changes to the database. Using the symfony do

[symfony-users] Re: Symfony-Doctrine Migrations and Branches

2009-05-13 Thread Don Pinkster
else run into this, and, if so, are there any strategies you > could suggest to work around / manage this problem? > > Thanks! > > > > __ Informatie van ESET NOD32 Antivirus, versie van database viruskenmerken 4072 (20090513) __ Het berich

[symfony-users] Re: Symfony-Doctrine Migrations and Branches

2009-05-13 Thread David Ashwood
Consider setting a CI server when branches are merged that puts the migrations into the correct sequence. With this you can setup a CI server that takes a branch when a tag has been applied (via a hook) and then performs some tests against trunk. You can also implement tighter controls to commits

[symfony-users] Re: Symfony-Doctrine Migrations and Branches

2009-05-13 Thread Jonathan Wage
ork around / manage this problem? > > > > Thanks! > > > > > > > > > > > __ Informatie van ESET NOD32 Antivirus, versie van database > viruskenmerken 4072 (20090513) __ > > Het bericht is gecontroleerd door ESET NOD32 Antivirus

[symfony-users] Re: Zend Search scalability

2009-05-13 Thread Thibault Jouannic
Hello everybody, I've finally tested the solr solution, and I'm very happy with it. Performances are very good, and a search who needed a whole minute with Zend can be done in a few milliseconds. I've written a complete tutorial (in french, but code snippets should be understandable :) ) on how

[symfony-users] Re: Symfony-Doctrine Migrations and Branches

2009-05-13 Thread smnirven
> > > branches, we run into migration files that are numbered the same > > > because two developers created migration files.  I was wondering, has > > > anyone else run into this, and, if so, are there any strategies you > > > could suggest to work around / man

[symfony-users] Easiest way to filter HTML inputs

2009-05-13 Thread Adrien Mogenet
Hi everyone, I was wondering what's the better way (or the easier) to filter HTML inputs ? I mean, users can in a form submit inputs like this : "foobar" Comments are welcome ! -- Adrien --~--~-~--~~~---~--~~ You received this message because you are subscribed t

[symfony-users] Re: Easiest way to filter HTML inputs

2009-05-13 Thread David Ashwood
If you're looking to ensure that the submitted HTML is conformant (ie matching start/end tags, etc) then I usually just run it through tidy and then show it back to them on submit - so they can visually check it themselves to see if it's what they wanted. -Original Message- From: symfony-

[symfony-users] Re: Easiest way to filter HTML inputs

2009-05-13 Thread Adrien Mogenet
Finally I customized my settings.yml : escaping_strategy: on escaping_method:ESC_ENTITIES Works well ! -- Adrien On 14 mai, 00:22, "David Ashwood" wrote: > If you're looking to ensure that the submitted HTML is conformant (ie > matching start/end tags, etc) then I usually just

[symfony-users] Re: Easiest way to filter HTML inputs

2009-05-13 Thread David Ashwood
Watch out for any plugins you use and you'll need to run your tests again to ensure it's all working. I've encountered a few plugins that assume it's set to off. -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of Adrien Mogenet Sen

[symfony-users] Re: Easiest way to filter HTML inputs

2009-05-13 Thread Brian Racer
If you want to whitelist certain type of tags and attributes look into HTMLPurifier(http://htmlpurifier.org/). Brian Adrien Mogenet wrote: > Hi everyone, > > I was wondering what's the better way (or the easier) to filter HTML > inputs ? > I mean, users can in a form submit inputs like this : >

[symfony-users] Re: Easiest way to filter HTML inputs

2009-05-13 Thread David Ashwood
That's pretty cool - and there even appears to be a plugin for it: http://www.symfony-project.org/plugins/sfXssSafePlugin -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of Brian Racer Sent: 14 May 2009 00:46 To: symfony-users@goog

[symfony-users] Re: 1.2.x Debug bar no longer showing query times

2009-05-13 Thread Josh Steiner
Is this now a configurable option that I'm failing to see in the documentation? It would be immensely helpful to be able to see the times on each query again like in 1.x for troubleshooting with the sysadmin why searches are running so slow on this project host. Thanks, Josh On Wed, Apr 22, 20

[symfony-users] Take the 2009 Symfony Developers Survey

2009-05-13 Thread Sherif
Hey Guys, Not long to go now before we close off the 2009 Symfony Developers survey http://symfonynerds.com/blog/?p=220 . If you haven't gone through and done it, it would be great to! Over 160 people have already taken the survey, in the past few days. We will be sharing the results of the sur

[symfony-users] Symfony 1.2 and sfguard

2009-05-13 Thread g0d br
Hi, I'd try to ask the same question in the forum. i have this erros when go to http://localhost/backend_dev.php/sfGuardUser *Strict Standards*: Non-static method genExtraListeners::listenToPreExecute() cannot be called statically in * /usr/share/php/symfony/event/sfEventDispatcher.class.php* on

[symfony-users] how do I get the URL? the old $_SERVER["QUERY_STRING"] doesn't work correctly in symfony

2009-05-13 Thread nick
How do I get the URL? The old $_SERVER["QUERY_STRING"] doesn't work correctly in symfony - it seems to think the weblog/index/id/15 are all folders. I'm looking for a helper like url_for(), but in reverse. --~--~-~--~~~---~--~~ You received this message because you

[symfony-users] Is there a better way to find a related record other than looping?

2009-05-13 Thread joshuacoady
The schema for this is below, but say I'm working with the Entry object and the query that loads the Entry object also loads the related EntryMeta at the same time. Now, I want to find the Entry's MetaData record that has a particular value for type. Is there a better way to do this than to loop t

[symfony-users] Re: Symfony 1.2 and sfguard

2009-05-13 Thread Frank Stelzer
This listener does not exist for the sfGuardPlugin. It sounds, that you have defined your own listener without providing static access to it. Am 14.05.2009 um 02:26 schrieb g0d br: > genExtraListeners::listenToPreExecute --~--~-~--~~~---~--~~ You received thi