Re: [symfony-users] Wrong date and currency format for locale

2010-12-01 Thread Pierre-Yves LEBECQ
Maybe the default culture is not properly set on the user. Could you try to set it manually in an action displaying dates ? $this-getUser()-setCulture('es_AR'); 2010/11/26 hrajchert hrajch...@gmail.com Hi, i live in Argentina and speak spanish, so my default culture is es_AR. Ive setted

Re: [symfony-users] 1.4 routing .html problem

2010-11-25 Thread Pierre-Yves LEBECQ
And what's the problem ? You did tell us the expected result but not the current result. It will be hard to guess what's wrong ^^ If the problem is the .html missing at the end, you have to look for a parameter generate_shortest_url in the factories.yml and set it to false. 2010/11/24

Re: [symfony-users] Task with DB access

2010-11-17 Thread Pierre-Yves LEBECQ
The database name you put as the argument of getDatabase method has to be the name in the database.yml file, not the actual database name. By default, it's doctrine or propel depending of the ORM you're using. 2010/11/16 man mixi mixi...@gmail.com When there is access to external systems,

Re: [symfony-users] Using country code for i18n Doctrine translations

2010-10-27 Thread Pierre-Yves LEBECQ
http://www.doctrine-project.org/projects/orm/1.2/docs/manual/behaviors/en#core-behaviors:i18n The default length for the lang column generated by Doctrine is 2, I think that's the reason of your problem. So, you can just use the language in symfony if you don't need to provide different

Re: [symfony-users] Variable actions in backend

2010-10-27 Thread Pierre-Yves LEBECQ
You should be able to do this by overloading the template _list_td_actions.php ( http://www.symfony-project.org/jobeet/1_4/Doctrine/en/12#chapter_12_templates_customization ). Just copy the generated one (it's in the cache folder) in your module directory, and add your code. -- Pierre-Yves

Re: [symfony-users] schema imported without relations

2010-10-27 Thread Pierre-Yves LEBECQ
I think the response is simply No. DQL does not rely on the structure of the database but only on the generated model files before actually querying the database. You have to define relationships in order to have a correctly generated model and then Doctrine will be able to parse you DQL query to

Re: [symfony-users] Re: sfDoctrinePlugin Query Cache Configuration

2010-10-22 Thread Pierre-Yves LEBECQ
to the doctrine.configure_connection event, and test the sf_environment setting to set the query cache you want ? 2010/10/22 bzarzuela bzarzu...@gmail.com I've done that as well but sadly, it didn't work. On Oct 21, 9:13 pm, Pierre-Yves LEBECQ py.leb...@gmail.com wrote: Ok, what about adding an indentation

Re: [symfony-users] Re: sfDoctrinePlugin Query Cache Configuration

2010-10-21 Thread Pierre-Yves LEBECQ
for sfDoctrineDatabase.class.php already has the logic to get it from the environment's configuration. The only question now is *where* to put the configuration. On Oct 20, 4:37 pm, Pierre-Yves LEBECQ py.leb...@gmail.com wrote: In your ProjectConfiguration class (/config), you can add

Re: [symfony-users] Clear cache in action

2010-10-20 Thread Pierre-Yves LEBECQ
On 12 October 2010 09:39, Pierre-Yves LEBECQ py.leb...@gmail.com wrote: Did you try to instanciate the sfClearCacheTask and run it ? I see no reason for this not to work. $ccTask = new sfClearCacheTask(); $ccTask-run(); -- Pierre-Yves LEBECQ 2010/10/12 Sela Yair tzi...@gmail.com

Re: [symfony-users] perform symfony task function in module action

2010-10-20 Thread Pierre-Yves LEBECQ
You can instanciate your task class and run it directly from your action. public function executeMyAction(sfWebRequest $request) { chdir(sfConfig::get('sf_root_dir')); // You may need that $myTask = new myTask($this-dispatcher, new sfFormatter()); $myTask-run(array('argument' = 'value'),

[symfony-users] Re: This is nuts, SwiftMailer trying to connect to localhost SMTP even if delivery strategy is none

2010-10-13 Thread Pierre-Yves LEBECQ
Did you put the good parameters in your factories.yml ? dev: mailer: param: delivery_strategy: none transport: class: Swift_NullTransport On 12 oct, 07:25, bzarzuela bzarzu...@gmail.com wrote: A simple call to $mailer-composeAndSend is driving me nuts. public

Re: [symfony-users] Clear cache in action

2010-10-13 Thread Pierre-Yves LEBECQ
Did you try to instanciate the sfClearCacheTask and run it ? I see no reason for this not to work. $ccTask = new sfClearCacheTask(); $ccTask-run(); -- Pierre-Yves LEBECQ 2010/10/12 Sela Yair tzi...@gmail.com is there a single command in sfConfigCache to clear all the cache? i want

Re: [symfony-users] Doctrine JOIN model defined in schema with and one that isnt

2010-10-13 Thread Pierre-Yves LEBECQ
I would go in a very simple way : In your model class Profile, you could add a method which retrieves the PDO connection from doctrine and query the user table directly. It could look like this : class Profile extends BaseProfile { public function getUser() { $dbh =