[symfony-users] Re: Do doctrine record event listeners use transactions

2010-05-13 Thread Tom Haskins-Vaughan
Anyone? :) On May 10, 1:20 pm, Tom Haskins-Vaughan wrote: > Hi all, > > Having read the chapter in More with symfony 1.3 & 1.4 on Doctrine Behaviours: > > http://www.symfony-project.org/more-with-symfony/1_4/en/08-Advanced-D... > > I just have a quick question. When you use the doctrine event > l

[symfony-users] Re: How to show the validation errors inside the modal box?

2010-05-13 Thread Javier Garcia
It desappears. Javi On May 7, 8:31 am, Tom Ptacnik wrote: > What happen if there are no errors on the form in modal box? The modal > box remain showed with some information like "thank you for your > informations" or it disappears? > > On 4 kvě, 12:12,JavierGarcia wrote: > > > > > Hi, > > > i ha

[symfony-users] Re: Question about choice widget

2010-05-13 Thread Javier Garcia
Thanks Tom. Anyway, I want to add this link below to the links that you gave in your first post: http://www.thatsquality.com/articles/7-days-of-symfony-1-1-forms-widgets-and-validators-day7 I find it interesting about formatting forms. Javi On May 12, 11:38 am, Tom Ptacnik wrote: > What about

[symfony-users] Re: Testing credentials

2010-05-13 Thread J_Wesker
If you are using symfony 1.2 or above, and your are trying to make a functional test, you can use the sfTesterUser class like this: $browser-> get('/')-> with('user')->begin()-> isCulture('es')-> isAuthenticated(true)-> hasCredential('admin')-> isAttribute('sfguard_user_id', '

[symfony-users] Re: How to convert a SQL query to a Doctrine left join with subquery

2010-05-13 Thread grahamj42
$collection is a Doctrine_Collection object. This has a method get() which can take a row number and returns a Doctrine_Record object. The Doctrine-Record object can be accessed by field name, so $collection->get(0)->title should return the title of the first request. Alternatively, you can use H

[symfony-users] search with multiple tables

2010-05-13 Thread Vitor
Hi, I'm trying to search using for example 1 field, but search in many tables. I know uses the DQL, but I can't show the results, because the result must be in a Model structure, and they are not. I tried to create a model, and use Select... AS... for adapt the name of field with the name of my "

[symfony-users] Re: Alternate layout and a tables doubt (2 doubts in one mail!)

2010-05-13 Thread Tom Ptacnik
There isn't config folder in the module, you have to create it ;) Then create a view.yml file in it.. On 13 kvě, 11:41, Parijat Kalia wrote: > Hey guys, > > this layout thing doesn't work >  I mean where exactly is there a config folder for each modules now I > only have an actions and templ

[symfony-users] Re: How to convert a SQL query to a Doctrine left join with subquery

2010-05-13 Thread El Duderino
The simplified DQL looks good and returns the correct rows including the last created_at so definite progress. You mentioned using $collection=$q- >execute(array(),Doctrine_Core::HYDRATE_RECORD); // to retrieve all the records How exactly would I be able to use this to pull the comment's last dat

[symfony-users] Re: svn cleanup prob

2010-05-13 Thread grahamj42
I suspect you have deleted a file/directory in your working copy which SVN wants to commit. Please post the output from 'svn status' - without this it's impossible to help. On May 12, 5:20 pm, yongSymfo wrote: > Hi, > > i have this bug when i try to commit my project work, bugs is "svn: > the cop

[symfony-users] Re: Getting 0 results

2010-05-13 Thread grahamj42
Bill, I think your ProductCategory method should look more like: public function getActiveProductsQuery() { return Doctrine_Core::getTable('Product')->createQuery('p')-> where('p.id IN (SELECT product_id FROM product_to_product_category WHERE category_id=?)', $this->getId

Re: [symfony-users] Include component from other Application

2010-05-13 Thread Pietrino Atzeni
In case you want to use a component shared between multiple applications, the best is to create a plugin. Hope this helps, Pietro Actually it is not possible. The point of applications is to seperate them completely. If you need something cross-application consider creating classes in your roo

Re: [symfony-users] Include component from other Application

2010-05-13 Thread Gareth McCumskey
Actually it is not possible. The point of applications is to seperate them completely. If you need something cross-application consider creating classes in your root lib/ directory instead. On Thursday 13 May 2010 12:53:50 abbbassi abidi wrote: > i think that you can't > > 2010/5/13 wueb > >

[symfony-users] Re: Search feature with multiple models/tables

2010-05-13 Thread Vitor
I have the same problem, and i don't know too. I think the the problem is more with the List of results than with the Search, case this can be customized. Thanks for any help too. Vitor On 7 abr, 01:14, Apul Gupta wrote: > Hi, > > Please suggest me, "How can I implement thesearchfunctionality f

Re: [symfony-users] Re: Problem while loading fixture with the plugin sfDoctrineGuardPlugin

2010-05-13 Thread Etienne Michon
Yeah maybe. I will try it tomorrow 'cause I'm not at work today. Thanks for your help On Thu, May 13, 2010 at 09:56, Tom Ptacnik wrote: > I think, it's because ./symfony doctrine:data-load don't delete > existing data. Then if you run it, the sfGuardUser_admin with username > admin already exist

[symfony-users] Event Dispatcher connects twice the same function to same event when using own events in task

2010-05-13 Thread Bogumil Wrona
Hi all, I am using lots of tasks and they are parts of plugins. I would like to expand functionality of them using Observer pattern -> Events. Problem is that: When I run the task number of listeners is doubled so each function is running twice! example: --- | myMajorPlugin

Re: [symfony-users] Include component from other Application

2010-05-13 Thread abbbassi abidi
i think that you can't 2010/5/13 wueb > Hi, > > It is possible use a component from an application "general" on the > application "main" for example? > > > In the template of app "main" i have: > > > > But doesn't work, any idea please? > > -- > If you want to report a vulnerability issue on sy

Re: [symfony-users] help

2010-05-13 Thread Gareth McCumskey
Don't take this the wrong way, but all the questions you have asked so far have been very basic features of symfony. Perhaps spend some more time learning symfony with the documentation provided (even do the tutorials) and you will find you wont be asking questions as much :) On Thursday 13 May

[symfony-users] Include component from other Application

2010-05-13 Thread wueb
Hi, It is possible use a component from an application "general" on the application "main" for example? In the template of app "main" i have: But doesn't work, any idea please? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

Re: [symfony-users] help

2010-05-13 Thread safa boubekri
than you a lot it's resolved -- 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@googlegr

RE: [symfony-users] help

2010-05-13 Thread Daniel Kucharski
You need to save the 'personne' object before sending the mail $this->form->getObject()->save(); -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of safa boubekri Sent: donderdag 13 mei 2010 11:27 To: symfony-users Subject: [symfon

Re: [symfony-users] Re: Alternate layout and a tables doubt (2 doubts in one mail!)

2010-05-13 Thread Parijat Kalia
Hey guys, this layout thing doesn't work I mean where exactly is there a config folder for each modules now I only have an actions and templates folder generated...by Eno's suggestion, I should go and make a change at the configs module and I am all set.but then now there is only one conf

Re: [symfony-users] help

2010-05-13 Thread Pietrino Atzeni
Hi again, you forgot to call $this->form->save(); Hope this helps, Pietro hello every body i put this code public function executeCreate(sfWebRequest $request) { $this -> formpersonne= new personneForm(); $this->form = $this->configuration->getForm($this->personne); if ($request->

[symfony-users] help

2010-05-13 Thread safa boubekri
hello  every body i put this code  public function executeCreate(sfWebRequest $request)  {  $this -> formpersonne= new personneForm();  $this->form = $this->configuration->getForm($this->personne); if ($request->isMethod('post')) { $this->form->bind($request->getParameter($this->form->getName()

[symfony-users] Re: How to convert a SQL query to a Doctrine left join with subquery

2010-05-13 Thread grahamj42
I would start by simplifying the query: SELECT r.*, MAX(c.created_at) AS last_comment FROM request r LEFT JOIN comment c on r.id=c.request_id GROUP BY c.request_id; This can be expressed using DQL as: $q=Doctrine_Query::create()->select( 'r.*, MAX(c.created_at) AS last_comment' )->from( 'req

[symfony-users] How to convert a SQL query to a Doctrine left join with subquery

2010-05-13 Thread El Duderino
To simplify a project I am working on it has two tables, one for posting requests, the other for making comments on that request (one- to-many relationship). The objective is to return one line per request (whether there has been a comment or not) and show the date for the latest comment made on th

[symfony-users] Re: Problem while loading fixture with the plugin sfDoctrineGuardPlugin

2010-05-13 Thread Tom Ptacnik
I think, it's because ./symfony doctrine:data-load don't delete existing data. Then if you run it, the sfGuardUser_admin with username admin already exists and it's not created.. then the fixtures can't use sfGuardUser_admin object. What do you think, could it be this? On 12 kvě, 12:14, Etienne

Re: [symfony-users] problem with plugin install

2010-05-13 Thread abbbassi abidi
hi, did you install this plugin sfTaskExtraPlugin it will help you to install the other plugin 2010/5/13 Tom Haskins-Vaughan > Did you clear your cache? > > On 5/12/10, . wrote: > > I tried it now, but I got the same result. :( > > > > Is there a step-by-step guide about how to install plugin fo

[symfony-users] Re: Fatal error: Cannot redeclare class BaseBrandsPeer

2010-05-13 Thread Tom Ptacnik
It means that you have the class BaseBrandsPeer already defined somewhere else (in some file). You have to find it. On 11 kvě, 08:14, Mikay wrote: > Hi,guys > I'm using symfony 1.0 with propel,and when I visit one page , I got > this error, >  Fatal error: Cannot redeclare class BaseBrandsPeer i