[symfony-users] Re: frontend: get labels (not id) from child tables

2010-04-21 Thread Tom Ptacnik
You can do $mainObject->getChild()->getTitle() or something like that.

Or you can create a __toString() method in your child object.


If this will not work, you will have to give us more clues - how you
template code and schema look like.



On 21 dub, 10:55, SatBoy78  wrote:
> hi
> thank you for your suggestion... but if I slugify the IDs I can change
> the text in the url, and I need that change (text label replacing IDs)
> in the indexSuccess and in the showSuccess pages, where there are the
> list of records stored in the database and each single record...
>
> now in my indexSuccess I can see:
>
> Name                              Place/Zone
> American bar                       1
> Thai restaurant                     3
>
> instead I want
>
> Name                                 Place/Zone
> American bar                       Manhattan
> Thai restaurant                     Newark
>
> do you know how can I solve this problem?
>
> thanks a lot
>
> best regards
>
> On 20 Apr, 22:28, Eno  wrote:
>
> > You could slugify the IDs - its discussed in the Jobeet tutorial, Day 
> > 5:http://www.symfony-project.org/jobeet/1_4/Doctrine/en/05
>
> --
> 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
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/symfony-users?hl=en

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: foreign key relations in admin generator

2010-04-21 Thread Tom Ptacnik
I think that this  // Doctrine_Collection data : Array( 0 :
Object(ZoneCitta) )  //
means, that you have used a method which gives you a collection of
objects (probably some 1:N or M:N relation) and not a single object.



On 20 dub, 16:19, SatBoy78  wrote:
> Hi
> I've tried to use your suggestions to solve a similar problem that I
> have with my application, but when I am in the backend_dev I can't see
> the text label: there is a strange text " Doctrine_Collection
> data : Array( 0 : Object(ZoneCitta) )  "
>
> do you know the meaning of that string?
>
> I've used your second method, because with the first one I've got many
> errors in the module.
>
> thanks a lot
>
> best regards
>
> On 17 Mar, 13:31, Arnold Ispan  wrote:
>
>
>
>
>
> > Hello,
>
> > In the client_name partial you could use:
> > *echo $contract->getClient()->getName();*
>
> > and in the generator.yml you could use:
>
> > *display: [_client_name, .]*
> > *
> > *
> > *or the second method would be to define a method in your Contract model
> > class*
> > *
> > *
> > *public function getClientName()*
> > *{*
> > *     return $this->getClient()->getName()*
> > *}
> > *
> > and then in the generator.yml you could use it like
>
> > *display: [clientName, .]*
>
> > Hope it helps you :)
>
> --
> 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
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/symfony-users?hl=en

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: Database changes

2010-04-21 Thread Gareth McCumskey
@Parijat
Don't use symfony's command line tools to propagate database changes
to a live system with production data. Those command line tools really
are designed for development purposes. The best way to go about
altering a live production server is to make the changes to the schema
in your schema.yml, rebuild models and edit code to reflect the
changes and when you update code on the production server, manually
add/remove/edit the existing schema on the live server. ALTER TABLE
commands are very simple and very similar to CREATE TABLE commands and
are a non-destructive way of altering a database.

Symfony's command line tools for altering database schema as I said,
is for development where you will have a test database, on your local
machine or a dedicated test server, where you also have fixtures, so
you can run the propel commands that recreate the database based on
your schema changes (that also remove all data) and then repopulate
test data from your fixtures.

Hope that helps.

On Thu, Apr 22, 2010 at 6:47 AM, Parijat Kalia  wrote:
>
> To Eno!
> Thanks Eno!!!
> Thing is I am on propel now, and I don't really have the time to work
> through a shift to doctrine. Although I am sure it isn't the most time
> consuming activity, but time is a little tight here. Is there something
> similar in propel?
>
>
> To GODBOUT!
> Hey ...nice piece of detective work!!! I hope you did not lose valuable
> space on your gmail or your precious time!
> Thanks a ton for posting the link to my question and finding out that it was
>  Cheers!
>
> On Wed, Apr 21, 2010 at 7:37 PM, godbout 
> wrote:
>>
>> Yeah, and it looks like it's the same guy that is asking the same
>> thing over and over...
>>
>>
>> http://groups.google.com/group/symfony-users/browse_thread/thread/6f50773c4d21d00/0b0195e283f7cacb?lnk=gst&q=Parijat+Kalia#0b0195e283f7cacb
>>
>>
>> On Apr 22, 10:09 am, Eno  wrote:
>> > On Wed, 21 Apr 2010, Parijat Kalia wrote:
>> > > The one sucky part about symfony for me is how to handle database
>> > > changes. I
>> > > mean, if I need to go about changing db fields, then must i loose all
>> > > my
>> > > existing data?
>> >
>> > >  I am sure there is a very easy way around this, coz if there is a
>> > > long way
>> > > around it, then that would be crazy as db changes happen all the time.
>> >
>> > Migrations are your friend. (If you're still using Propel, then this
>> > might
>> > be incentive to switch to Doctrine :-)
>> >
>> > http://www.doctrine-project.org/documentation/cookbook/1_0/en/symfony...
>> >
>> > This questions comes up on the list every month or two...
>> >
>> > --
>> >
>> > --
>> > 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
>> > To unsubscribe from this group, send email to
>> > symfony-users+unsubscr...@googlegroups.com
>> > For more options, visit this group
>> > athttp://groups.google.com/group/symfony-users?hl=en
>>
>> --
>> 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
>> To unsubscribe from this group, send email to
>> symfony-users+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>
> --
> 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
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: Database changes

2010-04-21 Thread Parijat Kalia
To Eno!
Thanks Eno!!!
Thing is I am on propel now, and I don't really have the time to work
through a shift to doctrine. Although I am sure it isn't the most time
consuming activity, but time is a little tight here. Is there something
similar in propel?


To GODBOUT!
Hey ...nice piece of detective work!!! I hope you did not lose valuable
space on your gmail or your precious time!
Thanks a ton for posting the link to my question and finding out that it was
 Cheers!

On Wed, Apr 21, 2010 at 7:37 PM, godbout wrote:

> Yeah, and it looks like it's the same guy that is asking the same
> thing over and over...
>
>
> http://groups.google.com/group/symfony-users/browse_thread/thread/6f50773c4d21d00/0b0195e283f7cacb?lnk=gst&q=Parijat+Kalia#0b0195e283f7cacb
>
>
> On Apr 22, 10:09 am, Eno  wrote:
> > On Wed, 21 Apr 2010, Parijat Kalia wrote:
> > > The one sucky part about symfony for me is how to handle database
> changes. I
> > > mean, if I need to go about changing db fields, then must i loose all
> my
> > > existing data?
> >
> > >  I am sure there is a very easy way around this, coz if there is a long
> way
> > > around it, then that would be crazy as db changes happen all the time.
> >
> > Migrations are your friend. (If you're still using Propel, then this
> might
> > be incentive to switch to Doctrine :-)
> >
> > http://www.doctrine-project.org/documentation/cookbook/1_0/en/symfony...
> >
> > This questions comes up on the list every month or two...
> >
> > --
> >
> > --
> > 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
> > To unsubscribe from this group, send email to
> > symfony-users+unsubscr...@googlegroups.com
> > For more options, visit this group athttp://
> groups.google.com/group/symfony-users?hl=en
>
> --
> 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
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Database changes

2010-04-21 Thread godbout
Yeah, and it looks like it's the same guy that is asking the same
thing over and over...

http://groups.google.com/group/symfony-users/browse_thread/thread/6f50773c4d21d00/0b0195e283f7cacb?lnk=gst&q=Parijat+Kalia#0b0195e283f7cacb


On Apr 22, 10:09 am, Eno  wrote:
> On Wed, 21 Apr 2010, Parijat Kalia wrote:
> > The one sucky part about symfony for me is how to handle database changes. I
> > mean, if I need to go about changing db fields, then must i loose all my
> > existing data?
>
> >  I am sure there is a very easy way around this, coz if there is a long way
> > around it, then that would be crazy as db changes happen all the time.
>
> Migrations are your friend. (If you're still using Propel, then this might
> be incentive to switch to Doctrine :-)
>
> http://www.doctrine-project.org/documentation/cookbook/1_0/en/symfony...
>
> This questions comes up on the list every month or two...
>
> --
>
> --
> 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
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/symfony-users?hl=en

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Unavailable and Error page - can't use helpers or else?

2010-04-21 Thread godbout
Hi!

I'm customizing my error and unavailable page and I'm a bit surprised
to see that the include_stylesheet and other helpers don't work. I
want to use the same sheets that for my app. Can't I use any symfony
framework functionalities in those 2 files?

Thx,
Cheers

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Database changes

2010-04-21 Thread Eno
On Wed, 21 Apr 2010, Parijat Kalia wrote:

> The one sucky part about symfony for me is how to handle database changes. I
> mean, if I need to go about changing db fields, then must i loose all my
> existing data?
> 
>  I am sure there is a very easy way around this, coz if there is a long way
> around it, then that would be crazy as db changes happen all the time.

Migrations are your friend. (If you're still using Propel, then this might 
be incentive to switch to Doctrine :-)

http://www.doctrine-project.org/documentation/cookbook/1_0/en/symfony-and-doctrine-migrations

This questions comes up on the list every month or two...


-- 


-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Database changes

2010-04-21 Thread Parijat Kalia
Hey guys,

The one sucky part about symfony for me is how to handle database changes. I
mean, if I need to go about changing db fields, then must i loose all my
existing data?

 I am sure there is a very easy way around this, coz if there is a long way
around it, then that would be crazy as db changes happen all the time.

Hints and suggestions greatly appreciated!


parijat kalia

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] FormFilterDate

2010-04-21 Thread Germana Oliveira
Hi!!!

I have a table without 'date' so i use the 'created_at' field to define
the date and show it to the user, the thing is that now im working with
filters and ans error comes out when i try to search something (Notice:
Array to string conversion
in 
/usr/local/symfony/RELEASE_1_2_5/lib/plugins/sfPropelPlugin/lib/vendor/propel/util/DebugPDOStatement.php
 on line 80) just because the created_at field. 

Now i have this:


$this->widgetSchema['created_at'] = new sfWidgetFormFilterDate(array(
'from_date'  => new sfWidgetFormDate(array('format'  => '%day%-%month
%-%year%')),
'to_date'=> new sfWidgetFormDate(array('format'  => '%day%-%
month%-%year%')),
'with_empty' => false,
'template'   => 'desde: %from_date% hasta: %to_date%',
));


I know this is not the correct way 'coz created_at is not Date Widget,
but i can not find a better way.

Is there a solutions?

PD: i want to re-use the created_at, that's why i dont use a date field.

THANK YOU!!

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] how to get the pattern of a route?

2010-04-21 Thread comb
Hi!

I have two routes:
routing.yml
video_list_category_bestrated:
  url:  /video/category/:category_slug/bestrated
  class:   sfDoctrineRoute
  options: { model: VideoCategory, type: object }
  param:   { module: video, action: category }
  requirements:
sf_method: [get]

video_list_category:
  url:  /video/category/:category_slug
  class:   sfDoctrineRoute
  options: { model: VideoCategory, type: object }
  param:   { module: video, action: category }
  requirements:
sf_method: [get]


In the executeCategory-action I now need to know, if the call is
through video_list_category or video_list_category_bestrated. The
routes may change later so that I don't want to hard-code the patterns
in the actions.  How can I get the pattern of
video_list_category_bestrated?
Than I could check if this pattern matchs $this->getRoute()-
>getPattern()..

or is there even an easier way of doing this?

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: sfDoctrineActAsTaggablePlugin > Unknown method Video::addTag

2010-04-21 Thread comb
well now it's enabled cause the install-task worked with the *.tgz and
does this automatically, but maybe you're right and it wasn't enabled
before.. any way, it works that way I described :-)


On 21 Apr., 08:24, Tom Ptacnik  wrote:
> I think problem was in the ProjectConfiguration.class.php - the plugin
> wasn't enabled..?
>
> On 20 dub, 22:59, comb  wrote:
>
>
>
> > I got it  to work:
>
> > I downloaded (instead of svn checkoutthe) the plugins tgz with the
> > "Download package"-Link from the 
> > plugins-pagehttp://www.symfony-project.org/plugins/sfDoctrineActAsTaggablePlugin
> > Than the plugin:install works.
>
> > The templates: [Taggable] still fails with a "Unknown method
> > Video::addTag" but
> > actAs:
> >   Taggable: ~
>
> > works!
>
> > THANKS!
>
> > On 20 Apr., 22:35, comb  wrote:
>
> > > Thanks for answering.. unfortunately this fails during the
> > > doctrine:build -all task:
>
> > > r...@r-pc D:\xampp\htdocs\pen4\pen4
> > > # symfony doctrine:build --all --and-load --no-confirmation
>
> > > >> doctrine  Dropping "doctrine" database
> > > >> doctrine  Creating "dev" environment "doctrine" database
> > > >> doctrine  generating model classes
> > > ...
> > > >> autoload  Resetting application autoloaders
> > > >> file-     
> > > >> D:/xampp/htdocs/pen4/pen4/cache.../config/config_autoload.yml.php
> > > >> doctrine  generating form classes
>
> > > Fatal error: Class 'Taggable' not found in D:\xampp\htdocs
> > > \pen4\pen4\lib\model\doctrine\base\BaseVide
> > > o.class.php on line 89
>
> > > What may I do?
>
> > > On 20 Apr., 10:55, Poltasi Risom  wrote:
>
> > > > Try in schema.yml
> > > > Video:
> > > >   actAs:
> > > >     Timestampable: ~
> > > >     Taggable: ~
> > > >   columns:
> > > > then rebuild all
>
> > > > On Apr 20, 11:45 am, comb  wrote:
>
> > > > > Hi!
>
> > > > > I'm trying to get sfDoctrineActAsTaggablePlugin working with symfony
> > > > > 1.4.4.
>
> > > > > First the plugin-install task doesn't exist, but it was renamed to
> > > > > "plugin:install", so I used this. The installation fails with:
>
> > > > > r...@r-pc D:\xampp\htdocs\pen4\pen4
> > > > > # symfony 
> > > > > plugin:installhttp://svn.symfony-project.com/plugins/sfDoctrineActAsTaggablePlugin/...
>
> > > > > >> plugin    installing plugin 
> > > > > >> "http://svn.s...trineActAsTaggablePlugin/trunk";
> > > > > >> sfPearFrontendPlugin downloading trunk ...
> > > > > >> sfPearFrontendPlugin Starting to download trunk (637 bytes)
> > > > > >> sfPearFrontendPlugin .
> > > > > >> sfPearFrontendPlugin ...done: 637 bytes
> > > > > >> sfPearFrontendPlugin Could not get contents of package
> > > > > >> sfPearFrontendPlugin 
> > > > > >> "D:\xampp\htdocs\pen4\pen4\cache\.pear\trunk". Invalid tgz
> > > > > >> sfPearFrontendPlugin file.
> > > > > >> sfPearFrontendPlugin Download of
> > > > > >> sfPearFrontendPlugin 
> > > > > >> "http://svn.symfony-project.com/plugins/sfDoctrineActAsTaggablePlugin/...";
> > > > > >> sfPearFrontendPlugin succeeded, but it is not a valid package 
> > > > > >> archive
> > > > > >> sfPearFrontendPlugin Invalid or missing remote package file
>
> > > > >   Plugin "http://svn.symfony-project.com/plugins/
> > > > > sfDoctrineActAsTaggablePlugin/trunk" installation fa
> > > > > iled:
>
> > > > > r...@r-pc D:\xampp\htdocs\pen4\pen4
>
> > > > > Then I manually checked out the repository with svn and copied it to
> > > > > the plugins folder.
> > > > > I then edited my schema.yml:
> > > > > Video:
> > > > >   actAs:
> > > > >     Timestampable: ~
> > > > >   templates: [Taggable]
> > > > >   columns:
> > > > > ...
>
> > > > > the doctrine:build --all works.
> > > > > When I now do this:
> > > > > $v = new Video();
> > > > > $v->addTag('toto');
>
> > > > > I get:
> > > > > Unknown method Video::addTag
>
> > > > > What do I have to do, to make this plugin work? :-/
>
> > > > > --
> > > > > 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
> > > > > To unsubscribe from this group, send email to
> > > > > symfony-users+unsubscr...@googlegroups.com
> > > > > For more options, visit this group 
> > > > > athttp://groups.google.com/group/symfony-users?hl=en
>
> > > > --
> > > > 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
> > > > To unsubscribe from this group, send email to
> > > > symfony-users+unsubscr...@googlegroups.com
> > > > For more options, visit this group 
> > > > athttp://groups.google.com/group/symfony-users?hl=en
>
> > > --
> > > If you want to report a vulnerability issue on symfon

[symfony-users] Re: Multiple actions in one page

2010-04-21 Thread Poltasi Risom
If you need to display search form on one particular page init it in
the action. But if you want to have search form been shown through all
site - possibly component is a good way to init form. And include it
in the higher-level template (in the layout, for example).
This applies the login form also

On Apr 21, 7:44 pm, gopi  wrote:
> hi..
>
> I have got two forms to be displayed on a page (both are independent
> of each other).  Ex: user login, search
>
> Both the forms are the output of two different "actions"
>
> How do I get both the forms to be displayed on the same page?
> Component would have been better, but as far I could gather, it is not
> possible to display symfony forms from components
>
> thx
> gopi
>
> --
> 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
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/symfony-users?hl=en

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Multiple actions in one page

2010-04-21 Thread gopi
hi Daniel,

thx for the clarification.  I just tried using form in a component and
it works.

thx
gopi

On Apr 21, 9:48 pm, Daniel Lohse  wrote:
> Why wouldn't it be possible to display symfony forms from components? That 
> would be *i n s a n e*. A form is just an object you pass onto the view.
>
> Just instantiate your form class in the component via $this->form = new 
> YourFormClass(); and do an echo $form; in your component view.
>
> What did you expect from symfony – I hope not such crippled functionality! :)
>
> Daniel
>
> On 21.04.2010, at 18:44, gopi wrote:
>
>
>
> > hi..
>
> > I have got two forms to be displayed on a page (both are independent
> > of each other).  Ex: user login, search
>
> > Both the forms are the output of two different "actions"
>
> > How do I get both the forms to be displayed on the same page?
> > Component would have been better, but as far I could gather, it is not
> > possible to display symfony forms from components
>
> > thx
> > gopi
>
> > --
> > 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
> > To unsubscribe from this group, send email to
> > symfony-users+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en
>
> --
> 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
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/symfony-users?hl=en

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Multiple actions in one page

2010-04-21 Thread Daniel Lohse
Why wouldn't it be possible to display symfony forms from components? That 
would be *i n s a n e*. A form is just an object you pass onto the view.

Just instantiate your form class in the component via $this->form = new 
YourFormClass(); and do an echo $form; in your component view.

What did you expect from symfony – I hope not such crippled functionality! :)


Daniel

On 21.04.2010, at 18:44, gopi wrote:

> hi..
> 
> I have got two forms to be displayed on a page (both are independent
> of each other).  Ex: user login, search
> 
> Both the forms are the output of two different "actions"
> 
> How do I get both the forms to be displayed on the same page?
> Component would have been better, but as far I could gather, it is not
> possible to display symfony forms from components
> 
> thx
> gopi
> 
> -- 
> 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
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Multiple actions in one page

2010-04-21 Thread gopi
hi..

I have got two forms to be displayed on a page (both are independent
of each other).  Ex: user login, search

Both the forms are the output of two different "actions"

How do I get both the forms to be displayed on the same page?
Component would have been better, but as far I could gather, it is not
possible to display symfony forms from components

thx
gopi

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: sfEasyGMapPlugin

2010-04-21 Thread Omar El Mazny
i tried with the zoom and center same problem !! same grey square

On Apr 21, 5:04 pm, BenjaM1  wrote:
> Did you set the zoom and the center of your map ?
>
> $gMap->setZoom(...);
> $gMap->setCenter(...);
>
> On 21 avr, 16:55, Omar El Mazny  wrote:
>
>
>
> > Hi all,
>
> > i've been trying all day to integrate sfEasyGMap to my application,
> > the sample works fine but in my application i only see a grey empty
> > square !!!
>
> > any suggestions ??
>
> > thnx in advance !!!
>
> > --
> > 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
> > To unsubscribe from this group, send email to
> > symfony-users+unsubscr...@googlegroups.com
> > For more options, visit this group 
> > athttp://groups.google.com/group/symfony-users?hl=en
>
> --
> 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
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/symfony-users?hl=en

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: sfEasyGMapPlugin

2010-04-21 Thread BenjaM1
Did you set the zoom and the center of your map ?

$gMap->setZoom(...);
$gMap->setCenter(...);



On 21 avr, 16:55, Omar El Mazny  wrote:
> Hi all,
>
> i've been trying all day to integrate sfEasyGMap to my application,
> the sample works fine but in my application i only see a grey empty
> square !!!
>
> any suggestions ??
>
> thnx in advance !!!
>
> --
> 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
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/symfony-users?hl=en

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] sfEasyGMapPlugin

2010-04-21 Thread Omar El Mazny
Hi all,

i've been trying all day to integrate sfEasyGMap to my application,
the sample works fine but in my application i only see a grey empty
square !!!

any suggestions ??

thnx in advance !!!

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] working with filters

2010-04-21 Thread Germana Oliveira
Hi!

Is there a way to define a filter for a 'created_at' field ???

THANKS!!

-- 
Germana Oliveira

germanaoliveirab arroba gmail punto com
http://626f67.wordpress.com
http://slcarabobo.wordpress.com

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: sfGuardDoctrine with external database

2010-04-21 Thread HiDDeN
Yes, but what about security? Username and password will be sent in
clear? And performance?


On 21 abr, 16:36, wueb  wrote:
> I understand you wanna a database with sfGuard and other with your
> tables?
>
> You can just make the 2 connections in the databases.yml
>
> all:
>   sfGuardDatabase:
>     class: sfDoctrineDatabase
>     param:
>       dsn:      mysql:host=localhost;dbname=sfguarddatabase
>       username: root
>       password:
>   personalDatabase:
>     class: sfDoctrineDatabase
>     param:
>       dsn:      mysql:host=localhost;dbname=personaldatabase
>       username: root
>       password:
>
> On 21 Abr, 13:55, HiDDeN  wrote:
>
>
>
>
>
> > Is there some way to use the sfGuardDoctrine plugin against an
> > external database?
>
> > What I mean is to make the plugin query its tables in another server.
> > I have thought to replicate the plugin tables in another database and
> > use the callable feature, although I'm not sure if this is the best
> > solution.
>
> > Any thoughts?
>
> > --
> > 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
> > To unsubscribe from this group, send email to
> > symfony-users+unsubscr...@googlegroups.com
> > For more options, visit this group 
> > athttp://groups.google.com/group/symfony-users?hl=en
>
> --
> 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
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/symfony-users?hl=en

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] autogenerated id columns

2010-04-21 Thread Tofuwarrior
Is it possible to stop symfony/propel autogenerating id columns in my
tables?

I have the following schema and don't want id columns on the files and
folder tables, they have object_id that is Fk to the objects table. I
want to then create a getid that returns the objectId but at the
moment symfony/propel aut0o creates id columns for the files and
folders tables. I won't ever use these ids.

  cms_object:
id:  ~
peer_name:  {type: varchar(100), required: true}

  cms_folder:
object_id:  { type: integer, foreignTable: cms_object,
foreignReference:id, required: true, onDelete: cascade, onUpdate:
cascade}
name:  {type: varchar(255)}
description:  {type: varchar(1000)}
_propel_behaviors:
   timestampable:  ~
   nested_set:

  cms_file:
object_id:  { type: integer, foreignTable: cms_object,
foreignReference:id, required: true, onDelete: cascade, onUpdate:
cascade}
name:  {type: varchar(255)}
description:  {type: varchar(1000)}
mime_type:  {type: varchar(50)}
file_size: {type:integer}
hash:{ type: varchar(100),  required: true}
folder_id: { type: integer, foreignTable: cms_folder,
foreignReference:id, required: true, onDelete: cascade, onUpdate:
cascade}

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: symfony with subversion

2010-04-21 Thread Poltasi Risom
i advice you to put all generated files to ignore, for instance
svn rm lib/model/doctrine/base/*
svn propedit svn:ignore lib/model/doctrine/base
# put here * or *.php
and so on
I had conflicts with base files earlier many times

BUT deploying the project you have to rebuild all

cache/* and log/* put to ignore also

On Apr 21, 5:27 pm, jaubry  wrote:
> Hi,
> I am working on a symfony project written by many developpers.
> The project is under svn.
> Each developper works on its module. But sometimes, a developper need
> to change the schema.yml and regenerate the model. All the class files
> in lib/model,form,filter have changed and are put in the svn.
>
> When I svn update my project, I retrieve all the files (schema +
> classes). My files are up to date.
> How can I simply update my mysql db. Right now, I play the
> doctrine:build --all --and-load and recreating the classes.
> Therefore my classes are now different from svn.
>
> I suppose many of you work in a team and svn.
> Do you have best practices to collaborate on a symfony project ?
>
> Thanks by advance.
> Jerome
>
> --
> 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
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/symfony-users?hl=en

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: sfGuardDoctrine with external database

2010-04-21 Thread wueb
I understand you wanna a database with sfGuard and other with your
tables?

You can just make the 2 connections in the databases.yml

all:
  sfGuardDatabase:
class: sfDoctrineDatabase
param:
  dsn:  mysql:host=localhost;dbname=sfguarddatabase
  username: root
  password:
  personalDatabase:
class: sfDoctrineDatabase
param:
  dsn:  mysql:host=localhost;dbname=personaldatabase
  username: root
  password:

On 21 Abr, 13:55, HiDDeN  wrote:
> Is there some way to use the sfGuardDoctrine plugin against an
> external database?
>
> What I mean is to make the plugin query its tables in another server.
> I have thought to replicate the plugin tables in another database and
> use the callable feature, although I'm not sure if this is the best
> solution.
>
> Any thoughts?
>
> --
> 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
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/symfony-users?hl=en

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] jQuery + Forms + Symfony 1.3

2010-04-21 Thread wueb
Hi!

There are any plugin or examples how to use jQuery in Forms
validations for Symfony 1.3??

Thanks!!

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] symfony with subversion

2010-04-21 Thread jaubry
Hi,
I am working on a symfony project written by many developpers.
The project is under svn.
Each developper works on its module. But sometimes, a developper need
to change the schema.yml and regenerate the model. All the class files
in lib/model,form,filter have changed and are put in the svn.

When I svn update my project, I retrieve all the files (schema +
classes). My files are up to date.
How can I simply update my mysql db. Right now, I play the
doctrine:build --all --and-load and recreating the classes.
Therefore my classes are now different from svn.

I suppose many of you work in a team and svn.
Do you have best practices to collaborate on a symfony project ?

Thanks by advance.
Jerome


-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Search in text files.

2010-04-21 Thread Eno
On Wed, 21 Apr 2010, apm wrote:

> I have a lot of files (csv, txt etc) not in database but in file
> system.
> 
> Is it possible integrate it with some search engine?
> All what i want its filename as answer on search by some key.


http://www.symfony-project.org/plugins/sfLucenePlugin




-- 


-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: sfWidgetFormSelectDoubleList order of items?

2010-04-21 Thread comb
WOW.. after so much work and searching and trying i got really sick
about that.. BUT I finally GOT A SOLUTION!

Thanks to daniel for this link: http://quasipartikel.at/multiselect/
And I found this up to date blog-post on how to save metadata during a
form-save:
http://melikedev.com/2010/04/06/symfony-saving-metadata-during-form-save-sort-ids/

THANKS!
Robert

On 15 Apr., 10:10, comb  wrote:
> That would be GREAT!
>
> On 14 Apr., 23:33, Richtermeister  wrote:
>
> > Yeah, this is a pretty common requirement, and I've used a double list
> > before that had up/down arrows.
> > I'll see if I can find the code somewhere.. I've been meaning to
> > package that into a widget anyways.
>
> > Daniel
>
> > On Apr 14, 8:28 am, comb  wrote:
>
> > > Thanks for answering.
> > > User-View:
> > > The Band-Members can edit a gig (backend) and on the edit page there
> > > is a list of all songs and they can add them to the setlist of the
> > > gig.
> > > The band should be able to give the ordering of the songs in which
> > > they are played on the gig.
>
> > > I don't want to reinvent the wheel, so I tried to use the plugin for
> > > the double-list. It's almost perfect and while adding songs you can
> > > add the songs in the order they are supposed to be, but the plugin
> > > cannot save the order of the items and I want to know, how I can add
> > > this feature? If that's to complicated, I would like to easily do it
> > > an other way.
> > > Your suggestion with ajax etc is fine, but it would cost time to
> > > implement & test it and a plugin is just easier for me. :-)
>
> > > On 14 Apr., 14:20, Tom Haskins-Vaughan 
> > > wrote:
>
> > > > How do you see this working from a user's point of view? What order is
> > > > supposed to be recorded? I mean how do you anticipate telling the form
> > > > the correct order? Would it not be better to do the songs for one gig
> > > > at a time and just click to add a song in the order which you want to
> > > > store them. You could use Ajax to speed things up a bit.
>
> > > > On Mon, Apr 12, 2010 at 12:16 PM, Robert Heim  wrote:
> > > > > any hints or tipps? :-/
>
> > > > > Am 09.04.2010 14:45, schrieb comb:
>
> > > > >> Hi
>
> > > > >> I have a many-To-many (Gig-Song) relation and want to use
> > > > >> sfWidgetFormSelectDoubleList.
> > > > >> It work's fine, but I want to save the order of assignments, too (and
> > > > >> not only associated /unassociated ).
>
> > > > >> schema.yml:
> > > > >> # many-To-many-relation
> > > > >> ...
> > > > >> GigSong:
> > > > >>   columns:
> > > > >>     order_id: { type: integer, notnull: true, default: 0 }
> > > > >>     gig_id:  { type: integer, primary: true }
> > > > >>     song_id: { type: integer, primary: true }
> > > > >> ...
>
> > > > >> As you see I have an order_id. I want to use this field to determine
> > > > >> the ordering of played songs on a gig.
>
> > > > >> How can I save the order in which I associated the songs to a gig
> > > > >> using the sfWidgetFormSelectDoubleList? Or what may I do 
> > > > >> alternatively?
>
> > > > > --
> > > > > 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
> > > > > To unsubscribe from this group, send email to
> > > > > symfony-users+unsubscr...@googlegroups.com
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/symfony-users?hl=en
>
> > > > > To unsubscribe, reply using "remove me" as the subject.
>
>

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: :-( please help. ajax problem - noob to ajax -probably simple

2010-04-21 Thread Paul Burdon
Could you clarify what the 'proper' way is please.

Thanks.

On 21 April 2010 14:02, Massimiliano Arione  wrote:

> On 21 Apr, 14:39, Gareth McCumskey  wrote:
> > And if you had to create a restful api that returns content as JSON?
> > Returning JSON using renderText is perfectly valid and does not break
> > the seperation of concerns. The actions responsibility is to recieve a
> > request, gather data needed for the response and pass that data to the
> > template and/or requesting service. JSON is just a data format (well
> > within the actions field of responsibilities) not Javascript.
>
> Of course, I didn't mean the json part when I spoke of separation.
> That part is perfect, and after all is the only way to use ajax.
> The "wrong" part is the use of jq_javascript_tag() helper, that
> implies writing javascript code into html.
>
> cheers
> Massimiliano
>
> --
> 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
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] how to JOIN TABLE for better performance?

2010-04-21 Thread comb
Hi

Tables: Gig, Song and GigSong (many-to-many).

I use a pager and in executeIndex I set up the Query:

$q = Doctrine_Query::create()
->from('Gig g')
->leftJoin('g.GigSong gs ON gs.gig_id = g.id')
->orderBy('gs.order_id ASC');

$this->pager->setQuery($q);
...

On the indexSuccess page there will be a call $gig->getSongs() for
each gig.
class Gig ..
public function getSongs()
{
$q = Doctrine_Query::create()
->from('Song s')
->leftJoin('s.GigSong gs ON s.id = gs.song_id')
->andWhere('gs.gig_id = ?', $this->id)
->orderBy('gs.order_id ASC');
return $q->execute();
}

This results in 25 queries. How can I join the songs in the first
query?

In advance
comb

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: changed fields

2010-04-21 Thread rafaelgou
In PROPEL you can get with something like thiis with $this-
>modifiedColumns in save() method.

In the following example, I watch some fields only:

// Note the format of column name
$watchedColumns = array (
   ClientePeer::CLI_IP,
   ClientePeer::CLI_PLANO,
   ClientePeer::CLI_USUARIO,
   ClientePeer::CLI_SENHA,
   ClientePeer::CLI_MAC1,
   ClientePeer::CLI_SRV_ID,
   ClientePeer::CLI_STATUS
   );
$intersect = array_intersect($watchedColumns, $this->modifiedColumns);

// Well, there is modifications in fields I'm watching:
if (count($intersect)) { (... DO LOG STUFF ...) }

[]'s

Rafael Goulart from Brazil


-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: :-( please help. ajax problem - noob to ajax -probably simple

2010-04-21 Thread Massimiliano Arione
On 21 Apr, 14:39, Gareth McCumskey  wrote:
> And if you had to create a restful api that returns content as JSON?
> Returning JSON using renderText is perfectly valid and does not break
> the seperation of concerns. The actions responsibility is to recieve a
> request, gather data needed for the response and pass that data to the
> template and/or requesting service. JSON is just a data format (well
> within the actions field of responsibilities) not Javascript.

Of course, I didn't mean the json part when I spoke of separation.
That part is perfect, and after all is the only way to use ajax.
The "wrong" part is the use of jq_javascript_tag() helper, that
implies writing javascript code into html.

cheers
Massimiliano

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Search in text files.

2010-04-21 Thread apm
I have a lot of files (csv, txt etc) not in database but in file
system.

Is it possible integrate it with some search engine?
All what i want its filename as answer on search by some key.

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] sfGuardDoctrine with external database

2010-04-21 Thread HiDDeN
Is there some way to use the sfGuardDoctrine plugin against an
external database?

What I mean is to make the plugin query its tables in another server.
I have thought to replicate the plugin tables in another database and
use the callable feature, although I'm not sure if this is the best
solution.

Any thoughts?

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: :-( please help. ajax problem - noob to ajax -probably simple

2010-04-21 Thread Gareth McCumskey
And if you had to create a restful api that returns content as JSON?
Returning JSON using renderText is perfectly valid and does not break
the seperation of concerns. The actions responsibility is to recieve a
request, gather data needed for the response and pass that data to the
template and/or requesting service. JSON is just a data format (well
within the actions field of responsibilities) not Javascript.

On Wed, Apr 21, 2010 at 2:00 PM, Alexandru-Emil Lupu
 wrote:
> well i do:
>
> inside the controller:
> $this->hasLayout(false);
>
> inside the view:
>
> 
>
> Alecs
>
> On Wed, Apr 21, 2010 at 2:51 PM, Paul Burdon  wrote:
>> Thanks for all input everyone.
>>
>> Finally got it working, had to mess around with the javascript aswell and
>> that is always tricky for someone who really has never gone very far with
>> it.
>>
>> Anyway, it looks and works great, who would have thought that old dirty
>> javascript would turn out to be such a useful thing :-)
>>
>>
>>
>> On 21 April 2010 07:58, Gareth McCumskey  wrote:
>>>
>>> Its not javascript code its just a JSON encoded string.
>>>
>>> On Wed, Apr 21, 2010 at 8:22 AM, Massimiliano Arione 
>>> wrote:
>>> > On 19 Apr, 16:46, Tofuwarrior  wrote:
>>> >> As a general principle is my approach ( ie pull the data from an
>>> >> action into the jQuery) correct.
>>> >
>>> > I don't think your approach is fully correct.
>>> > You should never mix javascript and php code.
>>> > You should write php (and so html) as if javascript wouldn't exist.
>>> > Then, in a second step, add user interface enhancement with pure
>>> > javascript files.
>>> > It's a matter of separation of concerns: html (php) for structure, css
>>> > for presentation, javascript for behavior
>>> >
>>> > cheers
>>> > Massimiliano
>>> >
>>> > --
>>> > 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
>>> > To unsubscribe from this group, send email to
>>> > symfony-users+unsubscr...@googlegroups.com
>>> > For more options, visit this group at
>>> > http://groups.google.com/group/symfony-users?hl=en
>>> >
>>>
>>>
>>>
>>> --
>>> Gareth McCumskey
>>> http://garethmccumskey.blogspot.com
>>> twitter: @garethmcc
>>>
>>> --
>>> 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
>>> To unsubscribe from this group, send email to
>>> symfony-users+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/symfony-users?hl=en
>>
>> --
>> 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
>> To unsubscribe from this group, send email to
>> symfony-users+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>>
>
>
>
> --
> Have a nice day!
>
> Alecs
> Certified ScrumMaster
>
> There are no cannibals alive! I have ate the last one yesterday ...
> I am on web:  http://www.alecslupu.ro/
> I am on twitter: http://twitter.com/alecslupu
> I am on linkedIn: http://www.linkedin.com/in/alecslupu
> Tel: (+4)0722 621 280
>
> --
> 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
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: :-( please help. ajax problem - noob to ajax -probably simple

2010-04-21 Thread Alexandru-Emil Lupu
well i do:

inside the controller:
$this->hasLayout(false);

inside the view:



Alecs

On Wed, Apr 21, 2010 at 2:51 PM, Paul Burdon  wrote:
> Thanks for all input everyone.
>
> Finally got it working, had to mess around with the javascript aswell and
> that is always tricky for someone who really has never gone very far with
> it.
>
> Anyway, it looks and works great, who would have thought that old dirty
> javascript would turn out to be such a useful thing :-)
>
>
>
> On 21 April 2010 07:58, Gareth McCumskey  wrote:
>>
>> Its not javascript code its just a JSON encoded string.
>>
>> On Wed, Apr 21, 2010 at 8:22 AM, Massimiliano Arione 
>> wrote:
>> > On 19 Apr, 16:46, Tofuwarrior  wrote:
>> >> As a general principle is my approach ( ie pull the data from an
>> >> action into the jQuery) correct.
>> >
>> > I don't think your approach is fully correct.
>> > You should never mix javascript and php code.
>> > You should write php (and so html) as if javascript wouldn't exist.
>> > Then, in a second step, add user interface enhancement with pure
>> > javascript files.
>> > It's a matter of separation of concerns: html (php) for structure, css
>> > for presentation, javascript for behavior
>> >
>> > cheers
>> > Massimiliano
>> >
>> > --
>> > 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
>> > To unsubscribe from this group, send email to
>> > symfony-users+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/symfony-users?hl=en
>> >
>>
>>
>>
>> --
>> Gareth McCumskey
>> http://garethmccumskey.blogspot.com
>> twitter: @garethmcc
>>
>> --
>> 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
>> To unsubscribe from this group, send email to
>> symfony-users+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>
> --
> 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
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Have a nice day!

Alecs
Certified ScrumMaster

There are no cannibals alive! I have ate the last one yesterday ...
I am on web:  http://www.alecslupu.ro/
I am on twitter: http://twitter.com/alecslupu
I am on linkedIn: http://www.linkedin.com/in/alecslupu
Tel: (+4)0722 621 280

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: :-( please help. ajax problem - noob to ajax -probably simple

2010-04-21 Thread Paul Burdon
Thanks for all input everyone.

Finally got it working, had to mess around with the javascript aswell and
that is always tricky for someone who really has never gone very far with
it.

Anyway, it looks and works great, who would have thought that old dirty
javascript would turn out to be such a useful thing :-)



On 21 April 2010 07:58, Gareth McCumskey  wrote:

> Its not javascript code its just a JSON encoded string.
>
> On Wed, Apr 21, 2010 at 8:22 AM, Massimiliano Arione 
> wrote:
> > On 19 Apr, 16:46, Tofuwarrior  wrote:
> >> As a general principle is my approach ( ie pull the data from an
> >> action into the jQuery) correct.
> >
> > I don't think your approach is fully correct.
> > You should never mix javascript and php code.
> > You should write php (and so html) as if javascript wouldn't exist.
> > Then, in a second step, add user interface enhancement with pure
> > javascript files.
> > It's a matter of separation of concerns: html (php) for structure, css
> > for presentation, javascript for behavior
> >
> > cheers
> > Massimiliano
> >
> > --
> > 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
> > To unsubscribe from this group, send email to
> > symfony-users+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/symfony-users?hl=en
> >
>
>
>
> --
> Gareth McCumskey
> http://garethmccumskey.blogspot.com
> twitter: @garethmcc
>
> --
> 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
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Invitation to connect on LinkedIn

2010-04-21 Thread Gareth McCumskey
...

On Wed, Apr 21, 2010 at 1:42 PM, Welington Veiga
wrote:

>  LinkedIn
>
> Welington Veiga requested to add you as a connection on LinkedIn:
>
> Sammi,
>
> I'd like to add you to my professional network on LinkedIn.
>
> - Welington
>
>   
> Accept
>   View
> invitation from Welington 
> Veiga
>
>
>  © 2010, LinkedIn Corporation
>
> --
> 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
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Invitation to connect on LinkedIn

2010-04-21 Thread Welington Veiga
Sorry.

2010/4/21 Welington Veiga 

>  LinkedIn
>
> Welington Veiga requested to add you as a connection on LinkedIn:
>
> Sammi,
>
> I'd like to add you to my professional network on LinkedIn.
>
> - Welington
>
>   
> Accept
>   View
> invitation from Welington 
> Veiga
>
>
>  © 2010, LinkedIn Corporation
>
> --
> 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
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Welington da Veiga Silva
---
"Há pessoas que transformam o sol numa simples mancha amarela, mas há
aquelas que fazem de uma simples mancha amarela o próprio sol."
( Pablo Picasso )

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Invitation to connect on LinkedIn

2010-04-21 Thread Welington Veiga
LinkedIn
Welington Veiga requested to add you as a connection on LinkedIn:
--

Sammi,

I'd like to add you to my professional network on LinkedIn.

- Welington

Accept invitation from Welington Veiga
http://www.linkedin.com/e/qO9B2I_WgRga1ha72C9BjT1ZSbs3iZVTpH9BLz9GKgVHV4/blk/I639829709_3/pmpxnSRJrSdvj4R5fnhv9ClRsDgZp6lQs6lzoQ5AomZIpn8_cRYVc3sVczwVcPp9bRZvp65pslZDbPoQd3gUdP0Qcz4LrCBxbOYWrSlI/EML_comm_afe/

View invitation from Welington Veiga
http://www.linkedin.com/e/qO9B2I_WgRga1ha72C9BjT1ZSbs3iZVTpH9BLz9GKgVHV4/blk/I639829709_3/0PnPAMdPAOe3APdAALqnpPbOYWrSlI/svi/


 
--
(c) 2010, LinkedIn Corporation

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: configuration problem!?

2010-04-21 Thread Andz
PDO seems fine:
[ pdo_mysql ]
PDO Driver for MySQL - enabled
Client API version - 5.1.41


On Apr 21, 11:07 am, Gareth McCumskey  wrote:
> The problem is probably that PDO is not installed. Create an easily
> accesible php file that you can open in browser with the code:
>
>  phpinfo();
>
> And run that in teh browser. Look for the mysql PDO and if you do not
> see it in there then that is your problem. "Unable to find adapter for
> datasource" is the error message when the correct libraries are not
> installed or configured correctly.
>
>
>
> On Wed, Apr 21, 2010 at 12:20 AM, Andz  wrote:
> > It reports no problematic issues
> >http://pastie.org/926961
>
> > On Apr 19, 9:52 am, Tom Ptacnik  wrote:
> >> What about symfony check_configuration.php script?
>
> >> On 15 dub, 14:38, Andris  wrote:
>
> >> > When issuing command: "symfony propel:data-load" it fails with notice
> >> > -- Unable to find adapter for datasource [i2].
>
> >> > I use symfony 1.4.5-DEV with latest sfPropel15Plugin.
> >> > (XAMPP 1.7.4 on Windows 7 (64bit) environment)
> >> > a) in phpMyAdmin set password for root user
> >> > b) Created project with "--orm=Propel"
> >> > c) Configured DB, using {php symfony configure:database
> >> > "mysql:host=localhost;dbname=i2" root rootpass}
> >> > d) Later as written in plugin readme enabled plugin sfPropel15Plugin
> >> > instead of sfPropelPlugin, and updated propel.ini
>
> >> > propel.ini contents >>http://pastie.org/921089
> >> > databases.yml contents >>http://pastie.org/921096
> >> > my schema.xml contents >>http://pastie.org/921057
> >> > fixtures.yml contents >>http://pastie.org/921055
>
> >> > _ _ _
> >> > Please share your thoughts on this.
> >> > Thank you for your time.
>
> >> --
> >> 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
> >> To unsubscribe from this group, send email to
> >> symfony-users+unsubscr...@googlegroups.com
> >> For more options, visit this group 
> >> athttp://groups.google.com/group/symfony-users?hl=en
>
> > --
> > 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
> > To unsubscribe from this group, send email to
> > symfony-users+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en
>
> --
> Gareth McCumskeyhttp://garethmccumskey.blogspot.com
> twitter: @garethmcc
>
> --
> 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
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/symfony-users?hl=en

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: changed fields

2010-04-21 Thread Gareth McCumskey
AFAIK when you do a save() on a propel object its just does an update
on all fields even if you only changed one, although I stand to be
corrected on this.

Eg:

$propel_obj = TablePeer::retrieveByPk($primary_key);
$propel_obj->setField1('newValue');
$propel_obj->setField2('newValue2');
$propel_obj->save();

This results in a query like:

UPDATE table (field1, field2, field3) VALUES ('newValue', 'newValue2',
'sameValue') WHERE id = $primary_key;

Like I said this is a guess on my part.

On Wed, Apr 21, 2010 at 12:09 PM, Tamas Amon  wrote:
> I like to write it to a log file, but only the changed fields. I use
> propel, but maybe this function help for me? Thanks.
>
> On 19 April 2010 08:49, Tom Ptacnik  wrote:
>> Where do you need to check this?
>>
>> If you are using doctrine, than you can do use in model $this-
>>>getModified(true/false) method
>>
>>
>>
>> On 18 dub, 12:58, Tamas Amon  wrote:
>>> Hello,
>>>
>>> Something s misunderstood?
>>>
>>> On 15 April 2010 15:02, Tamas Amon  wrote:
>>>
>>> > Hello,
>>>
>>> > I like to know if a form saved by update, which field is changed. How
>>> > can I know this?
>>>
>>> > Thanks
>>>
>>> > --
>>> > Ámon Tamás
>>>
>>> --
>>> Ámon Tamás
>>>
>>> --
>>> 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
>>> To unsubscribe from this group, send email to
>>> symfony-users+unsubscr...@googlegroups.com
>>> For more options, visit this group 
>>> athttp://groups.google.com/group/symfony-users?hl=en
>>
>> --
>> 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
>> To unsubscribe from this group, send email to
>> symfony-users+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>>
>
>
>
> --
> Ámon Tamás
>
> --
> 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
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: changed fields

2010-04-21 Thread Tamas Amon
I like to write it to a log file, but only the changed fields. I use
propel, but maybe this function help for me? Thanks.

On 19 April 2010 08:49, Tom Ptacnik  wrote:
> Where do you need to check this?
>
> If you are using doctrine, than you can do use in model $this-
>>getModified(true/false) method
>
>
>
> On 18 dub, 12:58, Tamas Amon  wrote:
>> Hello,
>>
>> Something s misunderstood?
>>
>> On 15 April 2010 15:02, Tamas Amon  wrote:
>>
>> > Hello,
>>
>> > I like to know if a form saved by update, which field is changed. How
>> > can I know this?
>>
>> > Thanks
>>
>> > --
>> > Ámon Tamás
>>
>> --
>> Ámon Tamás
>>
>> --
>> 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
>> To unsubscribe from this group, send email to
>> symfony-users+unsubscr...@googlegroups.com
>> For more options, visit this group 
>> athttp://groups.google.com/group/symfony-users?hl=en
>
> --
> 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
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Ámon Tamás

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] [ASK] How to implementing sfDynamicsPlugin?

2010-04-21 Thread riky jtk
Hi, anyone can explain to me, how to implement sfDynamicsPlugin? give me
some example or step by step,..

Please [?]

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
<<330.gif>>

[symfony-users] Re: frontend: get labels (not id) from child tables

2010-04-21 Thread SatBoy78
hi
thank you for your suggestion... but if I slugify the IDs I can change
the text in the url, and I need that change (text label replacing IDs)
in the indexSuccess and in the showSuccess pages, where there are the
list of records stored in the database and each single record...

now in my indexSuccess I can see:

Name  Place/Zone
American bar   1
Thai restaurant 3

instead I want

Name Place/Zone
American bar   Manhattan
Thai restaurant Newark

do you know how can I solve this problem?

thanks a lot

best regards

On 20 Apr, 22:28, Eno  wrote:
> You could slugify the IDs - its discussed in the Jobeet tutorial, Day 
> 5:http://www.symfony-project.org/jobeet/1_4/Doctrine/en/05

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: configuration problem!?

2010-04-21 Thread Gareth McCumskey
The problem is probably that PDO is not installed. Create an easily
accesible php file that you can open in browser with the code:

 wrote:
> It reports no problematic issues
> http://pastie.org/926961
>
>
> On Apr 19, 9:52 am, Tom Ptacnik  wrote:
>> What about symfony check_configuration.php script?
>>
>> On 15 dub, 14:38, Andris  wrote:
>>
>>
>>
>> > When issuing command: "symfony propel:data-load" it fails with notice
>> > -- Unable to find adapter for datasource [i2].
>>
>> > I use symfony 1.4.5-DEV with latest sfPropel15Plugin.
>> > (XAMPP 1.7.4 on Windows 7 (64bit) environment)
>> > a) in phpMyAdmin set password for root user
>> > b) Created project with "--orm=Propel"
>> > c) Configured DB, using {php symfony configure:database
>> > "mysql:host=localhost;dbname=i2" root rootpass}
>> > d) Later as written in plugin readme enabled plugin sfPropel15Plugin
>> > instead of sfPropelPlugin, and updated propel.ini
>>
>> > propel.ini contents >>http://pastie.org/921089
>> > databases.yml contents >>http://pastie.org/921096
>> > my schema.xml contents >>http://pastie.org/921057
>> > fixtures.yml contents >>http://pastie.org/921055
>>
>> > _ _ _
>> > Please share your thoughts on this.
>> > Thank you for your time.
>>
>> --
>> 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
>> To unsubscribe from this group, send email to
>> symfony-users+unsubscr...@googlegroups.com
>> For more options, visit this group 
>> athttp://groups.google.com/group/symfony-users?hl=en
>
> --
> 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
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] navigation plugin

2010-04-21 Thread Slavka
Hey guys... was just wondering if anyone has created a simple
navigation plugin for symfony?

-- 
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
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Potential issue with SQL been generated by Propel!!?? or an issue with my schema??

2010-04-21 Thread Slavka
SORRY... IGNORE THIS POST. THE BUG WAS IN THE SCHEMA!!!

On Apr 21, 5:36 pm, Gábor Fási  wrote:
> You just copied a long schema and sql file, without any highlight of
> the problem whatsoever. You'd have better chances of getting an answer
> if you pointed to the problem, or at least gave us an error message.
>
>
>
> On Wed, Apr 21, 2010 at 09:14, Slavka  wrote:
> > Ok i came accross this weird issue the other day... i created a
> > schema.yml file
>
> > ~
> > propel:
> >  _attributes:                              { package: lib.model.ams,
> > defaultIdMethod: native }
> >  ams_company:
> >    id: ~
> >    company:                                { type: varchar(255),
> > required: true  }
> >    created_at: ~
> >    updated_at: ~
> >  ams_type:
> >    id: ~
> >    type:                                   { type: varchar(255),
> > required: true  }
> >    created_at: ~
> >    updated_at: ~
> >  ams_transaction_type:
> >    id: ~
> >    type:                                   { type: varchar(255),
> > required: true  }
> >    created_at: ~
> >    updated_at: ~
> >  ams_reporting_close:
> >    id: ~
> >    close_date:                             { type: timestamp,
> > required: true  }
> >    ams_company_id:                         { type: integer,
> > foreignTable: ams_company, foreignReference: id, required: true }
> >    sf_guard_user_id:                       { type: integer,
> > foreignTable: sf_guard_user, foreignReference: id, required: true }
> >    created_at: ~
> >    updated_at: ~
> >  ams_transaction_group:
> >    id: ~
> >    ams_type_id:                            { type: integer,
> > foreignTable: ams_type, foreignReference: id, required: true }
> >    ams_company_id:                         { type: integer,
> > foreignTable: ams_company, foreignReference: id, required: true }
> >    deal_id:                                { type: integer, required:
> > true }
> >    generated_name:                         { type: varchar(255),
> > required: true }
> >    default_transaction_date:               { type: date, required:
> > true }
> >    post_date:                              { type: timestamp,
> > required: true }
> >    third_party_name:                       { type: varchar(255),
> > required: true }
> >    sf_guard_user_id:                       { type: integer,
> > foreignTable: sf_guard_user, foreignReference: id, required: true }
> >    created_at: ~
> >    updated_at: ~
> >    _uniques:
> >      ams_type_id_ams_transaction_group_id:      [ams_type_id, id]
> >  ams_asset:
> >    id: ~
> >    domain_id:                              { type: integer, required:
> > true }
> >    domain_name:                            { type: varchar(255),
> > required: true }
> >    ams_company_id:                         { type: integer,
> > foreignTable: ams_company, foreignReference: id, required: true }
> >    post_date:                              { type: timestamp,
> > required: true }
> >    sf_guard_user_id:                       { type: integer,
> > foreignTable: sf_guard_user, foreignReference: id, required: true }
> >    created_at: ~
> >    updated_at: ~
> >  ams_transaction:
> >    id: ~
> >    ams_company_id:                         { type: integer,
> > foreignTable: ams_company, foreignReference: id, required: true }
> >    ams_type_id:                            { type: integer, required:
> > true }
> >    ams_transaction_group_id:               { type: integer, required:
> > true }
> >    ams_asset_id:                           { type: integer,
> > foreignTable: ams_asset, foreignReference: id, required: true }
> >    domain_name:                            { type: varchar(255),
> > required: true }
> >    transaction_date:                       { type: date, required:
> > true }
> >    price:                                  { type: double, required:
> > true }
> >    asset_change:                           { type: double, required:
> > true }
> >    asset_total:                            { type: double, required:
> > true }
> >    post_date:                              { type: timestamp,
> > required: true }
> >    sf_guard_user_id:                       { type: integer,
> > foreignTable: sf_guard_user, foreignReference: id, required: true }
> >    reversed_by_ams_transaction_id:         { type: integer,
> > foreignTable: ams_transaction, foreignReference: id, required: false }
> >    is_reversal:                            { type: boolean  }
> >    is_current:                             { type: boolean  }
> >    reporting_close_id:                     { type: boolean  }
> >    created_at: ~
> >    updated_at: ~
> >    _foreignKeys:
> >      ams_transaction_group_fk:
> >        foreignTable:  ams_transaction_group
> >        onDelete:      cascade
> >        references:
> >          - { local: ams_type_id, foreign: id }
> >          - { local: ams_transaction_group_id, foreign: id }
>
> > Then i generated the sql based on that...
> > ~

Re: [symfony-users] Potential issue with SQL been generated by Propel!!?? or an issue with my schema??

2010-04-21 Thread Gábor Fási
You just copied a long schema and sql file, without any highlight of
the problem whatsoever. You'd have better chances of getting an answer
if you pointed to the problem, or at least gave us an error message.

On Wed, Apr 21, 2010 at 09:14, Slavka  wrote:
> Ok i came accross this weird issue the other day... i created a
> schema.yml file
>
> ~
> propel:
>  _attributes:                              { package: lib.model.ams,
> defaultIdMethod: native }
>  ams_company:
>    id: ~
>    company:                                { type: varchar(255),
> required: true  }
>    created_at: ~
>    updated_at: ~
>  ams_type:
>    id: ~
>    type:                                   { type: varchar(255),
> required: true  }
>    created_at: ~
>    updated_at: ~
>  ams_transaction_type:
>    id: ~
>    type:                                   { type: varchar(255),
> required: true  }
>    created_at: ~
>    updated_at: ~
>  ams_reporting_close:
>    id: ~
>    close_date:                             { type: timestamp,
> required: true  }
>    ams_company_id:                         { type: integer,
> foreignTable: ams_company, foreignReference: id, required: true }
>    sf_guard_user_id:                       { type: integer,
> foreignTable: sf_guard_user, foreignReference: id, required: true }
>    created_at: ~
>    updated_at: ~
>  ams_transaction_group:
>    id: ~
>    ams_type_id:                            { type: integer,
> foreignTable: ams_type, foreignReference: id, required: true }
>    ams_company_id:                         { type: integer,
> foreignTable: ams_company, foreignReference: id, required: true }
>    deal_id:                                { type: integer, required:
> true }
>    generated_name:                         { type: varchar(255),
> required: true }
>    default_transaction_date:               { type: date, required:
> true }
>    post_date:                              { type: timestamp,
> required: true }
>    third_party_name:                       { type: varchar(255),
> required: true }
>    sf_guard_user_id:                       { type: integer,
> foreignTable: sf_guard_user, foreignReference: id, required: true }
>    created_at: ~
>    updated_at: ~
>    _uniques:
>      ams_type_id_ams_transaction_group_id:      [ams_type_id, id]
>  ams_asset:
>    id: ~
>    domain_id:                              { type: integer, required:
> true }
>    domain_name:                            { type: varchar(255),
> required: true }
>    ams_company_id:                         { type: integer,
> foreignTable: ams_company, foreignReference: id, required: true }
>    post_date:                              { type: timestamp,
> required: true }
>    sf_guard_user_id:                       { type: integer,
> foreignTable: sf_guard_user, foreignReference: id, required: true }
>    created_at: ~
>    updated_at: ~
>  ams_transaction:
>    id: ~
>    ams_company_id:                         { type: integer,
> foreignTable: ams_company, foreignReference: id, required: true }
>    ams_type_id:                            { type: integer, required:
> true }
>    ams_transaction_group_id:               { type: integer, required:
> true }
>    ams_asset_id:                           { type: integer,
> foreignTable: ams_asset, foreignReference: id, required: true }
>    domain_name:                            { type: varchar(255),
> required: true }
>    transaction_date:                       { type: date, required:
> true }
>    price:                                  { type: double, required:
> true }
>    asset_change:                           { type: double, required:
> true }
>    asset_total:                            { type: double, required:
> true }
>    post_date:                              { type: timestamp,
> required: true }
>    sf_guard_user_id:                       { type: integer,
> foreignTable: sf_guard_user, foreignReference: id, required: true }
>    reversed_by_ams_transaction_id:         { type: integer,
> foreignTable: ams_transaction, foreignReference: id, required: false }
>    is_reversal:                            { type: boolean  }
>    is_current:                             { type: boolean  }
>    reporting_close_id:                     { type: boolean  }
>    created_at: ~
>    updated_at: ~
>    _foreignKeys:
>      ams_transaction_group_fk:
>        foreignTable:  ams_transaction_group
>        onDelete:      cascade
>        references:
>          - { local: ams_type_id, foreign: id }
>          - { local: ams_transaction_group_id, foreign: id }
>
>
> Then i generated the sql based on that...
> ~~~
>
>
> # This is a fix for InnoDB in MySQL >= 4.1.x
> # It "suspends judgement" for fkey relationships until are tables are
> set.
> SET FOREIGN_KEY_CHECKS = 0;
>
> #-
> #-- ams_company
> #

[symfony-users] Potential issue with SQL been generated by Propel!!?? or an issue with my schema??

2010-04-21 Thread Slavka
Ok i came accross this weird issue the other day... i created a
schema.yml file

~
propel:
  _attributes:  { package: lib.model.ams,
defaultIdMethod: native }
  ams_company:
id: ~
company:{ type: varchar(255),
required: true  }
created_at: ~
updated_at: ~
  ams_type:
id: ~
type:   { type: varchar(255),
required: true  }
created_at: ~
updated_at: ~
  ams_transaction_type:
id: ~
type:   { type: varchar(255),
required: true  }
created_at: ~
updated_at: ~
  ams_reporting_close:
id: ~
close_date: { type: timestamp,
required: true  }
ams_company_id: { type: integer,
foreignTable: ams_company, foreignReference: id, required: true }
sf_guard_user_id:   { type: integer,
foreignTable: sf_guard_user, foreignReference: id, required: true }
created_at: ~
updated_at: ~
  ams_transaction_group:
id: ~
ams_type_id:{ type: integer,
foreignTable: ams_type, foreignReference: id, required: true }
ams_company_id: { type: integer,
foreignTable: ams_company, foreignReference: id, required: true }
deal_id:{ type: integer, required:
true }
generated_name: { type: varchar(255),
required: true }
default_transaction_date:   { type: date, required:
true }
post_date:  { type: timestamp,
required: true }
third_party_name:   { type: varchar(255),
required: true }
sf_guard_user_id:   { type: integer,
foreignTable: sf_guard_user, foreignReference: id, required: true }
created_at: ~
updated_at: ~
_uniques:
  ams_type_id_ams_transaction_group_id:  [ams_type_id, id]
  ams_asset:
id: ~
domain_id:  { type: integer, required:
true }
domain_name:{ type: varchar(255),
required: true }
ams_company_id: { type: integer,
foreignTable: ams_company, foreignReference: id, required: true }
post_date:  { type: timestamp,
required: true }
sf_guard_user_id:   { type: integer,
foreignTable: sf_guard_user, foreignReference: id, required: true }
created_at: ~
updated_at: ~
  ams_transaction:
id: ~
ams_company_id: { type: integer,
foreignTable: ams_company, foreignReference: id, required: true }
ams_type_id:{ type: integer, required:
true }
ams_transaction_group_id:   { type: integer, required:
true }
ams_asset_id:   { type: integer,
foreignTable: ams_asset, foreignReference: id, required: true }
domain_name:{ type: varchar(255),
required: true }
transaction_date:   { type: date, required:
true }
price:  { type: double, required:
true }
asset_change:   { type: double, required:
true }
asset_total:{ type: double, required:
true }
post_date:  { type: timestamp,
required: true }
sf_guard_user_id:   { type: integer,
foreignTable: sf_guard_user, foreignReference: id, required: true }
reversed_by_ams_transaction_id: { type: integer,
foreignTable: ams_transaction, foreignReference: id, required: false }
is_reversal:{ type: boolean  }
is_current: { type: boolean  }
reporting_close_id: { type: boolean  }
created_at: ~
updated_at: ~
_foreignKeys:
  ams_transaction_group_fk:
foreignTable:  ams_transaction_group
onDelete:  cascade
references:
  - { local: ams_type_id, foreign: id }
  - { local: ams_transaction_group_id, foreign: id }


Then i generated the sql based on that...
~~~


# This is a fix for InnoDB in MySQL >= 4.1.x
# It "suspends judgement" for fkey relationships until are tables are
set.
SET FOREIGN_KEY_CHECKS = 0;

#-
#-- ams_company
#-

DROP TABLE IF EXISTS `ams_company`;


CREATE TABLE `ams_company`
(
`id` INTEGER  NOT NULL AUTO_INCREMENT,
`company` VARCHAR(255)  NOT NULL,
`created_at` DATETIME,
`updated_at` DATETIME,
PRIMARY KEY (`id`)
)Type=InnoDB;

#-
#-- ams_type
#