Re: [symfony-users] manipulation a form with the eventDispatcher and form.post_configure

2010-07-18 Thread Javier Garcia
If you are interested in mark a label maybe your could be interested in this: http://www.dotmana.com/?p=432 There is another tutorial about this in a blog I can find now.. On 07/16/2010 05:54 PM, Daniel Lohse wrote: What do you mean by I don't have the form as reference? Look at the

Re: [symfony-users] manipulation a form with the eventDispatcher and form.post_configure

2010-07-18 Thread Javier Garcia
Or why don't you create a formatter for the form that adds an asterisk to all labels? On 07/16/2010 05:54 PM, Daniel Lohse wrote: What do you mean by I don't have the form as reference? Look at the ahDoctrineEasyEmbeddedRelationsPlugin and search for form.post_configure. Although the

[symfony-users] Where to extend sfGuardUserPeer class?

2010-07-18 Thread mlu...@gmail.com
Hi! I am working on a portal where users have a public profile. For this I would like to extend the sfGuardUserPeer class with a retrieveByUserName function. Can I do this in the in: plugins/sfGuardPlugin/lib/model/ sfGuardUserPeer.php or will these files be overwritten when I update the plugin

[symfony-users] Re: Where to extend sfGuardUserPeer class?

2010-07-18 Thread mlu...@gmail.com
The class already has got this function. I just didn't saw it because sfGuardPeer extends PluginsfGuardUserPeer instead of BasesfGuardUserPeer. Thx anyway. PluginsfGuardUserPeer On 18 Jul., 13:29, mlu...@gmail.com mlu...@gmail.com wrote: Hi! I am working on a portal where users have a public

[symfony-users] IF() in Propel query

2010-07-18 Thread HAUSa
Hi all, Is it possible to use IF() in a Propel query? I want a query like this: SELECT product.*, IF(MAX(bids.bid) product.price, MAX(bids.bid), product.price) as current_price FROM product LEFT JOIN bids ON (product.id = bids.product_id) Thank, hope that someone can help me. Looked

[symfony-users] Re: genUrl with object

2010-07-18 Thread HAUSa
It says: The /:sf_culture/advertisement/show/:id/:slug route has some missing mandatory parameters (:id, :slug). This means it doesn't receive the object. While I actually do give it (and url_for would accept it this way): genUrl('advertisement_show', $oAdvertisement, true) Thanks for

Re: [symfony-users] Re: genUrl with object

2010-07-18 Thread Gábor Fási
Are you sure $oAdvertisement is not null? Can you call its getId and getSlug methods? On Sun, Jul 18, 2010 at 19:42, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: It says: The /:sf_culture/advertisement/show/:id/:slug route has some missing mandatory parameters (:id, :slug). This

[symfony-users] Re: Error in symfony2 on Win7

2010-07-18 Thread kranberry
Hi, I'm totally new to Synfony and just downloaded the Symfony2 sandbox. I'm running IIS under Windows 7 (64-bit) and I received the same error message as above. I checked that my build included the changes mentioned above and it does. What else do I need to change in order to get this first

[symfony-users] Re: Admin generator : Select items on different pages and run a batch action on this items

2010-07-18 Thread Anthony Servedio
you could try attaching a onclick javascript event on each checkbox, and add these id's to the user session, on page change, to set checkboxes as checked if in the session, to have the batch actions use that session var and clear it once completed or with another button! -- If you want to report

[symfony-users] [symfony2] Doctrine ORM Class not a valid entity or mapped super class Error

2010-07-18 Thread AMailer
Hey, Any idea why I would be getting this error? It only occurs when the cache is loaded. If I clear the cache, it works fine. -- 500 Internal Server Error - Doctrine\ORM\Mapping\MappingException Class Application\MyBundle\Entities\User\Account is not a valid entity or mapped

Re: [symfony-users] IF() in Propel query

2010-07-18 Thread Richard Zulu
Hi, I installed symfony 1.4.6. However, whenever i run the propel:build-sql command it doesn't generate my schema.sql file in the data directory. Am using Ubuntu and have phing active too. It gives me this output: php symfony propel:build-sql schemaconverting

[symfony-users] schema.sql not built

2010-07-18 Thread Richard Zulu
Hi, I installed symfony 1.4.6. However, whenever i run the propel:build-sql command it doesn't generate my schema.sql file in the data directory. Am using Ubuntu and have phing active too. It gives me this output: php symfony propel:build-sql schemaconverting /home/zulu/sfprojects/config/

[symfony-users] Re: IF() in Propel query

2010-07-18 Thread HAUSa
If everything goes well, a SQL file is created in your /data/sql folder. I don't know why that does not happen, it should :) Otherwise try build-all. Beware, this creates the model files as well and replaces the database. Please back to topic! Feel free to open a new discussion for this one. I'm

[symfony-users] Re: genUrl with object

2010-07-18 Thread HAUSa
Yes, I'm sure. Did a print_r($oAdvertisement) check just now to confirm. On 18 jul, 19:45, Gábor Fási maerl...@gmail.com wrote: Are you sure $oAdvertisement is not null? Can you call its getId and getSlug methods? On Sun, Jul 18, 2010 at 19:42, HAUSa

Re: [symfony-users] Re: genUrl with object

2010-07-18 Thread Gábor Fási
Try generateUrl instead of genUrl public function generateUrl($route, $params = array(), $absolute = false) On Sun, Jul 18, 2010 at 20:00, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Yes, I'm sure. Did a print_r($oAdvertisement) check just now to confirm. On 18 jul, 19:45, Gábor

[symfony-users] Re: schema.sql not built

2010-07-18 Thread Richard Zulu
Hi Sausa, I did the buid-all command and i get this output schemaconverting /home/zulu/sfprojects/config/schema.yml to XML schemaputting /home/zulu/sfprojects/config/generated-schema.xml propelRunning om phing task file- /home/zulu/sfprojects/config/generated-schema.xml

[symfony-users] upgrade sfDoctrineGuardPlugin from 4.0.1 to 4.0.2

2010-07-18 Thread fizyk
Hello, I'm trying to upgrade sfDoctrineGuardPlugin to the new version, and at first found that surprised that although in changelog said there was only change (fix) to the Remember Me? key generator, I'm getting fatal error whenever I make use something from sfDoctrineGuardPlugin after upgrade.

[symfony-users] Re: Mixing 1.0 and 1.3 symfony forms

2010-07-18 Thread Yunan Nafis Saadi Nal Taufik
hi halfer.. i have several projects that was developed by symfony 1.0, and i have no time to migrate them to the newer version. So i try to mixing some of them with symfony forms system. Till now, I haven't found any problem so far. And i wrote article how to mixing symfony forms system in

[symfony-users] Re: genUrl with object

2010-07-18 Thread HAUSa
It's official: you are my hero. Thanks! On 18 jul, 20:14, Gábor Fási maerl...@gmail.com wrote: Try generateUrl instead of genUrl  public function generateUrl($route, $params = array(), $absolute = false) On Sun, Jul 18, 2010 at 20:00, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:

[symfony-users] Re: Doctrine ORM Class not a valid entity or mapped super class Error

2010-07-18 Thread Aaron DM
I figured out what was the cause of this problem, it was the opcode cacher was using, eAcclerator on Windows. It wasn't playing well with Doctrine - I got rid of it, replaced it with APC and all's fine now! Thanks On Jul 16, 6:30 pm, AMailer amai...@gmail.com wrote: Hey, Any idea why I would

[symfony-users] preventing 's in sql created by Criteria

2010-07-18 Thread mlu...@gmail.com
Hi! In my registration form I want to make a blacklist for user names. For this i made a table containing entryies that are not allowed for user names. My idea was to work with like which allows entries like %bad % in the blacklist. The SQL would look like this: SELECT * FROM userblacklist u

[symfony-users] Re: preventing 's in sql created by Criteria

2010-07-18 Thread nibsirahsieu
$criteria-add( '.$values[username].', UserblackListPeer::ENTRY, Criteria::LIKE); i think it's should be: $criteria-setIgnoreCase(true); //add this If you want a column to be treated in case-sensitive fashion $criteria-add(UserblackListPeer::ENTRY, '%'.$values[username].'%', Criteria::LIKE); On

[symfony-users] Re: preventing 's in sql created by Criteria

2010-07-18 Thread mlu...@gmail.com
Thank you for the answer, but this isn't exactly what I need. If I have %bad% in the blacklist and a user enters badNew the entry isn't cought with the SQL: SELECT * FROM userblacklist u where entry LIKE %badNew%; But this would catch it SELECT * FROM userblacklist u where %badNew% like

Re: [symfony-users] Re: preventing 's in sql created by Criteria

2010-07-18 Thread Gábor Fási
% is the wildcard similar to * in a like query On Sun, Jul 18, 2010 at 23:23, mlu...@gmail.com mlu...@gmail.com wrote: Thank you for the answer, but this isn't exactly what I need. If I have %bad%  in the blacklist and a user enters badNew the entry isn't cought with the SQL: SELECT * FROM

[symfony-users] Re: preventing 's in sql created by Criteria

2010-07-18 Thread mlu...@gmail.com
I know what % is. It's a copy$paste failure. The second onw should look like this: SELECT * FROM userblacklist u where badNew like entry; On 18 Jul., 23:24, Gábor Fási maerl...@gmail.com wrote: % is the wildcard similar to * in a like query On Sun, Jul 18, 2010 at 23:23, mlu...@gmail.com

[symfony-users] Re: preventing 's in sql created by Criteria

2010-07-18 Thread nibsirahsieu
may be you can use zend lucene or solr On Jul 19, 4:26 am, mlu...@gmail.com mlu...@gmail.com wrote: I know what % is. It's a copy$paste failure. The second onw should look like this: SELECT * FROM userblacklist u where  badNew like entry; On 18 Jul., 23:24, Gábor Fási maerl...@gmail.com

[symfony-users] Re: IF() in Propel query

2010-07-18 Thread xplo
Hello, you probably can call raw sql on select clause with addAsColumn on your criteria but it wont be hydrated in your result objects so you should try propel 1.5 with the new with method that add custom select statement and hydrate them in the object. On Jul 18, 7:58 pm, HAUSa

[symfony-users] Re: preventing 's in sql created by Criteria

2010-07-18 Thread mlu...@gmail.com
I found a solution: $criteria-add( , '.$values[username].' LIKE .UserblackListPeer::ENTRY. , Criteria::CUSTOM ); = SELECT userBlacklist.ID, userBlacklist.ENTRY FROM `userBlacklist` WHERE 'bad' LIKE userBlacklist.ENTRY :-) On 18 Jul., 23:53, nibsirahsieu nibsirahs...@gmail.com wrote: may be

[symfony-users] .js is not loaded in prod enviroment

2010-07-18 Thread Javier Garcia
Hi, I'm loading correctly these .js in the dev enviroment: ?php use_javascript('/sfJqueryReloadedPlugin/js/jquery-1.3.2.min.js') ? ?php use_javascript('/sfJqueryReloadedPlugin/js/plugins/jquery-ui-1.7.2.custom.min') ? but in the prod enviroment the second one is not loaded. No mention

[symfony-users] Re: .js is not loaded in prod enviroment

2010-07-18 Thread pghoratiu
Did you clear the cache? gabriel On Jul 19, 2:20 am, Javier Garcia tirengar...@gmail.com wrote: Hi, I'm loading correctly these .js in the dev enviroment: ?php use_javascript('/sfJqueryReloadedPlugin/js/jquery-1.3.2.min.js') ? ?php

[symfony-users] Re: smarty with symfony 1.4

2010-07-18 Thread charanjeet
hi all, I am successful in using sfSmartyPlugin with symfony 1.4.6. Below are the steps i followed, in case someone needs 1. extract sfSmartyPlugin in plugin/ - plugin name in config/ProjectConfiguration.class.php - following in app.yml in each of app # default