[symfony-users] schema.sql why generate to create same table twice?

2010-04-05 Thread Sela
I generate the sql from the schema.yml and get this CREATE TABLE sf_guard_user_profile (id BIGINT AUTO_INCREMENT, user_id INT NOT NULL, email VARCHAR(80) NOT NULL UNIQUE, firstname VARCHAR(30), lastname VARCHAR(70), validate_at datetime, validate VARCHAR(33), created_at DATETIME NOT NULL,

[symfony-users] symfony and doctrine svn commit history visualization with Gource and Code Swarm

2010-04-05 Thread ruslanix
Gource (http://code.google.com/p/gource) and CodeSwarm (http:// code.google.com/p/codeswarm) are software version control visualization tools. We used this programs for symfony and doctrine repositories. You can view some videos here: http://simsym.com/codeswarm-gource-symfony-doctrine/ It's

[symfony-users] REST webservices

2010-04-05 Thread Beo
Hi, which is the best suggested practice to develop webservices and applications using them in symfony? I mean, I want to define a set of API in application A, and use these in application B. My basic approach should be: for application A: - define a schema (Doctrine rules) - define some

Re: [symfony-users] REST webservices

2010-04-05 Thread Alexandru-Emil Lupu
Hi! If you are using the same project, you can define the global schema which will create forms for both applications. You could better create a plugin and put whole the logic there. That will allow you to keep it modular. Also the logic will be groupped. The rest will be just enable and disable

[symfony-users] sfOutputEscaper behaviour

2010-04-05 Thread Apul Gupta
Hi, Actually, I want to show some HTML text from the database to a template. I am using echo $sf_data-getRaw('sf_content'); to get un-escaped value from the database but still it shows escaped data to me. What should I do to get unescaped value? I don't want to SET escaping-strategy = off in

Re: [symfony-users] symfony and doctrine svn commit history visualization with Gource and Code Swarm

2010-04-05 Thread Frank Stelzer
Very nice! I have seen CodeSwarm already for other projects and it is always impressive :) Very interesting to see, how the swarm looks like and behaves during release times. I recommend an additional english version of this blog post :) Frank Am 03.04.2010 um 20:17 schrieb ruslanix:

[symfony-users] Doctrine Behavior example in symfony 1.4 book - CountCache

2010-04-05 Thread mstralka
Hi, An example in The More with symfony book chapter 8 shows how to create a doctrine behavior called CountCache that counts the number of Posts a Thread has related to it: http://www.symfony-project.org/more-with-symfony/1_4/en/08-Advanced-Doctrine-Usage I'm trying to use this behavior in my

[symfony-users] help

2010-04-05 Thread safa boubekri
hello i follow http://www.symfony-project.org/jobeet/1_2/Doctrine/en/13 i need your help i create an administrator user but in the exuction i have The username and/or password is invalid. i cant access to my apps backend thank you -- If you want to report a vulnerability issue on

[symfony-users] Re: sfDoctrineGuardPlugin: Edit only own pofile

2010-04-05 Thread Tom Ptacnik
You can disable this edit route and create your ow route without user id. And in the action retrieve logged user id from the session. On 3 dub, 00:49, comb sa...@gmx.net wrote: Hey (symfony 1.4 + Doctrine) In the backend I have a list of members where each member is connected to a

[symfony-users] Trying to copy the project root folder to a pendrive. Error making symbolic link: Operation not permitted

2010-04-05 Thread Javier Garcia
Hi, im trying to copy the root folder of my sf project to a pendrive but im getting this error: Error while copying sfProtoculous There was an error copying the file into /media/KINGSTON/rs/web. Error making symbolic link: Operation not permitted I've tried with the project unfreezed and

Re: [symfony-users] Trying to copy the project root folder to a pendrive. Error making symbolic link: Operation not permitted

2010-04-05 Thread Daniel Lohse
Just delete those symbolic links in your symfony project. On the target machine you can run the tasks project:permissions and plugin:publish and all those symbolic links will be created for you. :) Cheers, Daniel On 05.04.2010, at 14:50, Javier Garcia wrote: Hi, im trying to copy the root

[symfony-users] ¿Hay algun chat irc en español sob re symfony?

2010-04-05 Thread Javier Garcia
Hola, solo eso. Javi Ubuntu 8.04 -- 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] Doctrine_Record accessors

2010-04-05 Thread Ettore
Hello all, i'm developing an app with Symfony 1.4 (tag, not last svn version) and Doctrine and i found a strange behavoir with the following code. schema.yaml --- User: columns: name: { type: string(40), notnull: true } surname: { type: string(40), notnull:

Re: [symfony-users] help

2010-04-05 Thread Germana Oliveira
the only thing i can tell you, is to double check the username you create and be sure you remember the password exactly as you typed it iwhe you create the user. But if you need to work on the backend, you just have to edit your security.yml file and say 'off' 2010/4/5 safa boubekri

Re: [symfony-users] Doctrine_Record accessors

2010-04-05 Thread Stéphane
What about $user-lastLogin ? Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Mon, Apr 5, 2010 at 6:39 PM, Ettore ete@gmail.com wrote: Hello all, i'm developing an app with Symfony 1.4 (tag,

Re: [symfony-users] timezones, symfony 1.0 and propel

2010-04-05 Thread Jacob Coby
Anyone? Surely someone has implemented timezones in symfony before? On Apr 1, 2010, at 11:11 AM, Jacob Coby wrote: Has anyone successfully implemented timezone support with symfony 1.0? I store my timestamps in America/New_York but need to display them in the user's timezone. The only

[symfony-users] Re: Doctrine_Record accessors

2010-04-05 Thread Ettore
echo $user-lastLogin; // ERROR echo $user[lastLogin]; // ERROR I took a look inside symfony's code. As what i have understood, the behavoir of ArrayAccess ( $user[...] ) and properties ( $user-field ) doesn't normalize the field value. But i can't found where this normalizations takes place when

[symfony-users] Re: Doctrine_Record accessors

2010-04-05 Thread Ettore
Found it: --- sfDoctrineRecordClass:166 --- public function __call($method, $arguments) { } This overrides the __call of Doctrine_Record. So, shouldn't this be done also for every other acessor/setter (__get __set __isset __unset and ArrayAccess methods) ? -- If you want to report a

[symfony-users] How to do upgrades

2010-04-05 Thread Samuel Morhaim
I have a question.. once I finish coding and the site goes into production, I can't rebuild the DB every time I need to add a field etc. How do people workaround this? What is the process for migrations? Thank you. -- If you want to report a vulnerability issue on symfony, please send it to

Re: [symfony-users] How to do upgrades

2010-04-05 Thread Jacob Coby
if you're using doctrine, migrations are part of symfony. if you're using propel, you can use the sfPropelMigrationsLight plugin from the symfony site or my fork of it that allows for out of order migrations (similar to rails) - sfPropelMigrations

[symfony-users] symfony 1.2 - sfTCPDFPlugin - how to embed a generated pdf to an action or partial

2010-04-05 Thread gato chlr
Hi to every body, i need to generate a PDF file (i'm using symfony 1.2 and sfTCPDFPlugin) and also get it embedded to an action or to a partial, in order to be show html code, and also in a little box the embedded pdf. thanks -- If you want to report a vulnerability issue on symfony, please

Re: [symfony-users] Re: sfDoctrineGuardPlugin: Edit only own pofile

2010-04-05 Thread Robert Heim
yeah good idea! I got a last small problem within the solution, since I do not know how to pass the ..-getUser()-getId() to the auto-edit-action?! I now overwrite the routes from the admin-generator backend/config/routing.yml .. # the Route I want to be used.. member_edit: url:

Re: [symfony-users] Re: sfDoctrineGuardPlugin: Edit only own pofile

2010-04-05 Thread Robert Heim
I already solved it with overwriting the whole action: public function executeEdit(sfWebRequest $request) { $id=$this-getUser()-getGuardUser()-getId(); $this-member = Doctrine::getTable('Member')-find($id); $this-form = $this-configuration-getForm($this-member);

[symfony-users] Fatal error: Call to undefined function remote_function()

2010-04-05 Thread Belgacem TLILI
i'm using sf 1.4 and i'm searching to embed a form using ajax i start with echo javascript_tag( remote_function(array( 'update' = 'myzone', 'url' = 'mymodule/myaction', )) ) ? i have use the java script helper in my template ?php use_helper('JavascriptBase') ? but i have an

Re: [symfony-users] Fatal error: Call to undefined function remote_function()

2010-04-05 Thread Robert Heim
try: echo javascript_tag(remote_function(array( 'update' = 'myzone', 'url' = 'mymodule/myaction', )) ) ? you need the because otherwise its interpreted as an PHP-function.. Am 05.04.2010 23:31, schrieb Belgacem TLILI: i'm using sf 1.4 and i'm searching to embed a form using

[symfony-users] Re: Fatal error: Call to undefined function remote_function()

2010-04-05 Thread Belgacem TLILI
great it's work the problem was resolved thank you Mr Robert Heim just one more thing in Firebug i have an error that i think is not important - invalid assignment left-hand side 'update' = 'myzone',\n --- ?? On 5 avr, 23:34, Robert Heim sa...@gmx.net wrote: try:

[symfony-users] Re: Fatal error: Call to undefined function remote_function()

2010-04-05 Thread Belgacem TLILI
i'm using jquery to get the ajax action this my code in the template script $(#MyButton).click(function() { remote_function(array(update=item_list,url=cap/new)); }); /script i have not any result ? -- If you want to report a vulnerability issue on symfony, please send it to security at

Re: [symfony-users] Re: Fatal error: Call to undefined function remote_function()

2010-04-05 Thread Robert Heim
I heard something like that Javascript doesn’t have built in support for associative arrays the way PHP and other programming languages do.. try var Arr=new Array(); Arr[0] = new Array(); Arr[0][first_name] = foo; Arr[0][last_name] = bar; Mitarbeiter[0][Wohnort]= Dresden; I'm not sure..

Re: [symfony-users] timezones, symfony 1.0 and propel

2010-04-05 Thread Disco Duro
Hi, I need info about manage timezones using doctrine on symfony 1.4. Anyone know any helper or pluging for this. Thanks, Nicolás Moreira 2010/4/5 Jacob Coby jc...@portallabs.com Anyone? Surely someone has implemented timezones in symfony before? On Apr 1, 2010, at 11:11 AM, Jacob Coby

[symfony-users] Re: sfWidgetFormJqueryDate - Bug when selecting in list the 8th or 9th of a month

2010-04-05 Thread alberthendriks
What xplo says is true. The fix has not yet been released. The fixed file can now be found here: http://svn.symfony-project.com/plugins/sfFormExtraPlugin/branches/1.3/lib/widget/ The diff is this: 86,88c86,88 jQuery(#%s).val(parseInt(date.substring(0, 4)));

[symfony-users] Problem with sfPropelParanoidBehaviorPlugin

2010-04-05 Thread Sky
I have installed the plugin by following these instructions: http://www.symfony-project.org/plugins/sfPropelParanoidBehaviorPlugin But, I get the following error message when trying to execute this statement on one of my model classes: sfPropelBehavior::add('Program', array('paranoid'));

Re: [symfony-users] sfOutputEscaper behaviour

2010-04-05 Thread Denis Golovin
Did you try to set escaping-strategy = off in the settings.yml of single module? Denis 2010/4/5 Apul Gupta apulmca...@gmail.com: Hi, Actually, I want to show some HTML text from the database to a template. I am using echo $sf_data-getRaw('sf_content'); to get un-escaped value from the