[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), requi

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 ot

[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

[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" gro

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 scrip

[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 indexSuc

[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 Gr

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) meth

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

[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

[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_WgRga1ha72C9Bj

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

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

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 use

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

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 re

[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

[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.co

[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 re

[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, Cliente

[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');

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

[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/symf

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 -- -

[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. Wh

[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 "symfon

[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: p

[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/* p

[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

[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: >  

[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 symfon

[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-pr

[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

[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 t

[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

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

[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. >

[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 als

[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

[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:

[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/

[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 chan

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 > ar

[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 vu

[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 Kal

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

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.

[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

[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