[symfony-users] Re: Problem with Relationship Doctrine.

2011-06-21 Thread eric.malzone
ESPRO\OrigensBundle\Entity\IeUnidade: type: entity table: ie_unidade fields: id: id: true type: integer unsigned: false nullable: false generator: strategy: IDENTITY unidade: type: string length: 100 fixed: false nullable:

[symfony-users] Re: problem with console commands list

2011-06-08 Thread Eric Clemmons
Mahmoud, I've also had several issues with having my VM access/execute files that reside on my primary machine via a shared folder. Can you confirm that everything works correctly when the application resides on the VM's filesystem? On Jun 4, 5:17 pm, "Mahmoud M. Abdel-Fattah" wrote: > I've jus

[symfony-users] Re : Problem with doctrine:generate:entities

2011-06-08 Thread Jérémy Simonklein
After a day of research, I think well sleeping during all the night can help ^^ I've founded where my problem came from : *A metadata file for Doctrine which stayed in the "MyBundle/Resources/config/doctrine/orm/" folder. * *I'**ve r**emoved it, and it works perfectly =D* -- If you want to re

Re: [symfony-users] Re: Problem with authentication on cluster

2011-04-15 Thread Alvaro Touzon
Hi, i've worked under cluster, and will be have the session into another cluster, will be? 2011/4/14 smontes > I am using the sandbox of the PR8. I happen the same issue when I use > entities on the authentication. the problem (as someone told me) could > be related with the property username, b

[symfony-users] Re: problem displaying a uploaded image

2011-04-14 Thread Gabriel Petchesi
I think that the main problem is that the resource is not in the right path or it's a webserver misconfiguration. For static resources there is a rule in the .htaccess distributed with symfony to not process paths that have a dot in them: http://svn.symfony-project.com/branches/1.4/lib/task/gene

[symfony-users] Re: Problem with authentication on cluster

2011-04-14 Thread smontes
I am using the sandbox of the PR8. I happen the same issue when I use entities on the authentication. the problem (as someone told me) could be related with the property username, because it is sometimes null. But sorry, I did not find the solution. If I find it I will tell you. -- If you want t

[symfony-users] Re: problem displaying a uploaded image

2011-04-13 Thread Laxmi
Hi, I just found other thing when i try to view image using url http://127.0.0.1:8081/images/user/desart.jpg on my local host i am getting 404 error, do symfony and security issue Thanks On Apr 13, 1:17 am, Gareth McCumskey wrote: > You are mixing backslashes and forward slashes > > > > On Wed,

[symfony-users] Re: problem displaying a uploaded image

2011-04-13 Thread Gabriel Petchesi
Check on the filesystem if the file is there and has the right name. You can use firebug to see what kind of error do you get when the file is loaded (404?). One more tip, handle the file save operations in the form, much cleaner that way. http://trac.symfony-project.org/browser/branches/1.4/

[symfony-users] Re: Problem with Doctrine2 and Symfony2 PR10

2011-04-07 Thread JeanChristophe
Ok so how I can create a real class (i.e: with setPseudo() methods) from my mapping class (which was named Acme.MyBundle.Entity.User.php) ? -- 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 subs

Re: [symfony-users] Re: Problem with Doctrine2 and Symfony2 PR10

2011-04-07 Thread Christophe COEVOET
Le 07/04/2011 15:31, JeanChristophe a écrit : 4) I create Entity directory in src/Acme/MyBundle I create the class Acme.MyBundle.Entity.User.php in this directory witch contains: The class file is User.php, not Acme.MyBundle.Entity.User.php Generating entities for "AcmeMyBundle" generating

[symfony-users] Re: Problem with Doctrine2 and Symfony2 PR10

2011-04-07 Thread JeanChristophe
OK. I give you all details with I have understand about the online documentation. 1) Create the bundle: php app/console init:bundle "Acme\MyBundle" src > - The bundle "AcmeMyBundle" was created at "src/Acme/MyBundle" and is > using the namespace "Acme\MyBundle". > - The bundle contains a sample co

[symfony-users] Re: Problem with Doctrine2 and Symfony2 PR10

2011-04-07 Thread weaverryan
Hey Jean- After all of the changes, what exactly do you have now (perhaps paste your User class again), and what is the error? Symfony's documentation coverage of Doctrine will be improved shortly - I want to make sure we address and correctly explain the process (so I want to see what your curre

[symfony-users] Re: Problem with Doctrine2 and Symfony2 PR10

2011-04-07 Thread JeanChristophe
Yes it is. I don't understand... -- 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@googl

Re: [symfony-users] Re: Problem with Doctrine2 and Symfony2 PR10

2011-04-07 Thread Christophe COEVOET
Le 07/04/2011 14:28, JeanChristophe a écrit : OK but in my first post, I have already put annotations in my class. So what is the problem now ? - My class is correctly completed with annotations so mapped. - My database is correctly available, and tables are already successfully generated by Doc

[symfony-users] Re: Problem with Doctrine2 and Symfony2 PR10

2011-04-07 Thread JeanChristophe
OK but in my first post, I have already put annotations in my class. So what is the problem now ? - My class is correctly completed with annotations so mapped. - My database is correctly available, and tables are already successfully generated by Doctrine. - My Bundle configuration is OK. - My con

Re: [symfony-users] Re: Problem with Doctrine2 and Symfony2 PR10

2011-04-07 Thread Christophe COEVOET
Le 07/04/2011 14:05, JeanChristophe a écrit : OK but how I can designed this mapping just for this unique class file User.php ? The documentation on Symfony about Doctrine is very little, and the Doctrine Documentation doesn't consider the Symfony2 context. Thanks a lot, JeanChristophe. The mapp

[symfony-users] Re: Problem with Doctrine2 and Symfony2 PR10

2011-04-07 Thread JeanChristophe
OK but how I can designed this mapping just for this unique class file User.php ? The documentation on Symfony about Doctrine is very little, and the Doctrine Documentation doesn't consider the Symfony2 context. Thanks a lot, JeanChristophe. -- If you want to report a vulnerability issue on symf

Re: [symfony-users] Re: Problem with Doctrine2 and Symfony2 PR10

2011-04-07 Thread Christophe COEVOET
Le 07/04/2011 13:48, JeanChristophe a écrit : @Christophe COEVOET: Thanks you very much. So, I have correctly placed my class in Entity dir, and with app/ console, Symfony2 have created the good associated class: Entity \User.php But, I have now another problem. I have write a little controlle

[symfony-users] Re: Problem with Doctrine2 and Symfony2 PR10

2011-04-07 Thread JeanChristophe
@Christophe COEVOET: Thanks you very much. So, I have correctly placed my class in Entity dir, and with app/ console, Symfony2 have created the good associated class: Entity \User.php But, I have now another problem. I have write a little controller but when I execute the script, one error is re

[symfony-users] Re: Problem with a very simple thing

2011-04-05 Thread zil...@gmail.com
Hello, make sure that you (and apache user) have physical access to your bundle. Try chown & chmod on your bundle. Peter -- 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 Goo

[symfony-users] Re: Problem with http_basic auth in Symfony 2

2011-04-04 Thread Dennis Jacobfeuerborn
Since you are using PR9 probably want to update the "/.*" to "^/.*" (see the PR8->PR9 section at https://github.com/symfony/symfony/blob/master/UPDATE.md ) though technically in this case the patterns should still match so I doubt this has anything to do with the problem. Other than that I don'

[symfony-users] Re: Problem with http_basic auth in Symfony 2

2011-04-04 Thread xaben
Nope, "security: true" didn't help. Any other ideas? Regards, Alex On Apr 4, 2:59 pm, Dennis Jacobfeuerborn wrote: > Not 100% sure if this helps but can you add "security: true" to the main > firewall? > > Regards, >   Dennis -- If you want to report a vulnerability issue on symfony, please se

[symfony-users] Re: Problem with http_basic auth in Symfony 2

2011-04-04 Thread Dennis Jacobfeuerborn
Not 100% sure if this helps but can you add "security: true" to the main firewall? Regards, Dennis -- 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

[symfony-users] Re: problem controller ODM

2011-04-03 Thread César Hernández
Using data-load loads three documents to the database MongoDB But I failed to list ... when I check in Symfony-profiler I get the following code Queries - use default; - db.Personas.find({ "_id": ObjectId("4d98e8519d87a2801100") }); I expected it to be db.Personas.find({ "nombre":

[symfony-users] Re: Problem with repositories with PR8

2011-03-24 Thread guiguiboy
Hi, I managed to get it work. In fact, I was using YAML to build my entities class and I saw that my annotations did not include @orm informations. So I created manually the entities class with @orm annotations and now it works. Guillaume B On 23 mar, 20:32, guiguiboy wrote: > Hi, > > I have in

[symfony-users] Re: Problem with Sending an email with a task

2011-03-17 Thread Richtermeister
You need to call the task with a specific application (either by adding --application=whatever to the calling code, or by specifying the default application in the respective parameter). Without that, you get a project config, with it, you get an application config. The reason is that many factorie

[symfony-users] Re: Problem with tasks, context and session storage

2011-02-14 Thread Basil Hussain
Yes, this solved my problem - thanks! Not sure why this solution didn't occur to me, even though I read the factories config reference talking about the sfNoStorage class. :) I created a separate 'tasks' environment with sfNoStorage specified as the session storage option, and all the warnings are

[symfony-users] Re: Problem setting up authentication in symfony2

2011-02-11 Thread Frenck
Try it with this in your config first: encoders: Symfony\Component\Security\Core\User\AccountInterface: algorithm: plaintext And work from there... ../Frenck On 10 feb, 05:26, Klaas Naaijkens wrote: > Hi, I am struggling with the security system in symfony2 for about a > day now.

Re: [symfony-users] Re: Problem setting up authentication in symfony2

2011-02-11 Thread Klaas Naaijkens
Justin, is this with PR6 or the latest symfony version from git? On Thu, Feb 10, 2011 at 2:44 PM, Justin Fortier wrote: > First make sure have the Bundle enabled in your AppKernel. So add this > line: > > new Symfony\Bundle\SecurityBundle\SecurityBundle(), > > > Then here's an example of my worki

[symfony-users] Re: Problem setting up authentication in symfony2

2011-02-10 Thread Justin Fortier
First make sure have the Bundle enabled in your AppKernel. So add this line: new Symfony\Bundle\SecurityBundle\SecurityBundle(), Then here's an example of my working config. The stuff that is commented out is what you're looking to implement. However I've set it up for multiple users with entiti

[symfony-users] Re: problem with $sf_user->getCredentials()

2011-01-25 Thread Stan McFarland
sorry - meant to say that hasCredential() works via both handlers. On Jan 25, 1:14 pm, Stan McFarland wrote: > All, > > I have a problem with a call to $sf_user->getCredentials().  If I call > this method via frontend_dev.php, everything works correctly.  But if > I call this method via index.php

Re: [symfony-users] Re: problem to use symfony

2010-12-13 Thread Alex Pilon
What do you mean it "didn't work"? Can you describe the problem you are having? On Sat, Dec 11, 2010 at 06:35, Justen Doherty wrote: > I use MAMP 1.8 with symfony 1.4 without any problems.. i tried to use the > latest MAMP install which didnt work with symfony 1.4.. > > > > On Fri, Dec 10, 2010

Re: [symfony-users] Re: problem to use symfony

2010-12-13 Thread Justen Doherty
I use MAMP 1.8 with symfony 1.4 without any problems.. i tried to use the latest MAMP install which didnt work with symfony 1.4.. On Fri, Dec 10, 2010 at 10:15 PM, Julian Reyes Escrigas < julian.reyes.escri...@gmail.com> wrote: > Hi, i'm a new Mac User if you like install Apache2 + php5.3 + my

[symfony-users] Re: problem to use symfony

2010-12-10 Thread Julian Reyes Escrigas
Hi, i'm a new Mac User if you like install Apache2 + php5.3 + mysql 5.x is easy with macports if you like in this post http://blog.ryanparman.com/2009/07/11/installing-php-5-3-with-mysqlnd-on-mac-os-x-with-macports/ you can get the instructions for install a good enviroment for development in

[symfony-users] Re: problem saving forms

2010-12-10 Thread el-sid
sorry, this part $this->processForm($request, $this->form); and this part $this->getUser()->signIn($this->form->getObject()); is not in the code. Thanks again On Dec 10, 6:10 pm, el-sid wrote: > okam really at my wits end here. can anyone please show me whats > going on here. > I modifi

[symfony-users] Re: problem saving forms

2010-12-10 Thread el-sid
okam really at my wits end here. can anyone please show me whats going on here. I modified my code to look like so $response = $this->getResponse()->addStyleSheet('template/2col.css'); $this->form = new RegisterForm(); if ($request->isMethod('post')) { $

[symfony-users] Re: Problem with doctrine:build-schema

2010-11-27 Thread lawrence
Was there any other development in this thread? I am struggling with the same issue. On Nov 16, 6:45 am, Pratik Mazumder wrote: > No Alex, I don't have tabs. These are white spaces only !!! > > On Tue, Nov 16, 2010 at 5:11 PM, Dominik Tuleweit wrote: > > > > > > > > > You have tabs for idention

[symfony-users] Re: Problem with doctrine:build-schema

2010-11-27 Thread lawrence
Any progress with this? I am desperate for an answer. On Nov 16, 6:45 am, Pratik Mazumder wrote: > No Alex, I don't have tabs. These are white spaces only !!! > > On Tue, Nov 16, 2010 at 5:11 PM, Dominik Tuleweit wrote: > > > > > > > > > You have tabs for idention, take whitespaces instead: > >

[symfony-users] Re: Problem with doctrine:build-schema

2010-11-27 Thread lawrence
Are there any other scripts I might be able to use to generate the schema? doctrine:build-schema does not work On Nov 16, 6:45 am, Pratik Mazumder wrote: > No Alex, I don't have tabs. These are white spaces only !!! > > On Tue, Nov 16, 2010 at 5:11 PM, Dominik Tuleweit wrote: > > > > > > > > >

[symfony-users] Re: Problem with doctrine:build-schema

2010-11-27 Thread lawrence
I have been struggling with this same issue. I have written this up on Symfony Experts. I am offering a $20 prize for a solution: http://www.symfonyexperts.com/question/show/id/156 Any help is greatly appreciated. I have been stuck on this for hours. On Nov 16, 6:45 am, Pratik Mazumder wrot

[symfony-users] Re: Problem with doctrine:build-schema

2010-11-21 Thread jake barnes
On Nov 16, 6:45 am, Pratik Mazumder wrote: > No Alex, I don't have tabs. These are white spaces only !!! Do you have the correct number of spaces? Have you checked your indenting? > > On Tue, Nov 16, 2010 at 5:11 PM, Dominik Tuleweit wrote: > > > > > > > > > You have tabs for idention, ta

Re: [symfony-users] Re: Problem with making a drop down menu from a table

2010-11-12 Thread Gareth McCumskey
If you are using Propel its not sfWidgetFormChoice but * sfWidgetFormPropelChoice*. sfWidgetFormChoice (what you currently have) requires you to provide it a list of options for the drop down. On Fri, Nov 12, 2010 at 2:27 AM, apc...@dsl.pipex.com wrote: > Thank you for taking time to help me. > >

Re: [symfony-users] Re: Problem with making a drop down menu from a table

2010-11-11 Thread Daniel Lohse
That's because you have to use the Doctrine (or Propel) version of this widget. Cheers, Daniel Sent from my iPhone4 On Nov 12, 2010, at 1:27 AM, "apc...@dsl.pipex.com" wrote: > Thank you for taking time to help me. > > My code is now: > > > $this->form = new sfForm(); > $this->form->setWid

[symfony-users] Re: Problem with making a drop down menu from a table

2010-11-11 Thread apc...@dsl.pipex.com
Thank you for taking time to help me. My code is now: $this->form = new sfForm(); $this->form->setWidgets(array( 'section_id' => new sfWidgetFormChoice(array( 'model' => 'sectors', 'column' => 'sectorTitle' ) ))); But I still get another error: sfWidgetFormChoice does not support th

[symfony-users] Re: Problem with drop down menu

2010-10-29 Thread apc...@dsl.pipex.com
Thanks , the _toString() method did the trick. excellent !!! Reto On Oct 29, 10:14 am, Gareth McCumskey wrote: > What code are you using to fill it with data or to create the drop down > itself? Do you have a __toString() magic method defined in your Sectors > class? > > > > > > On Thu, Oct 28,

[symfony-users] Re: Problem with fixtures and nested set behaviour schema

2010-10-14 Thread Benjamin
Ok, I found the problem. In my first attempt, I forgot the "NestedSet: true" command in the nested-set part of the fixture. To see what is going wrong, I commented out another fixture where I refer to the Mname dataset. But in that fixture I forgot to uncomment also the class name in the first line

[symfony-users] Re: Problem with fixtures and nested set behaviour schema

2010-10-14 Thread Benjamin
Hello, On 14 Okt., 11:37, Sela Yair wrote: > i would assume it's the database relations, do you use the same database on > windows and ubuntu? The Webserver environments are the same on both machines: Apache 2.2.14 + PHP 5.3.1 + MySQL 5.1.41 And sorry for the mistake in the fixture example. I c

[symfony-users] Re: Problem with Lucent output data search in Doctrine

2010-10-06 Thread pghoratiu
If you have those index files it is likely that the indexing part works ok, you just need to work on the query part of it. These are the files created on my environment (Solr 1.4): ./spellchecker2 ./spellchecker2/segments.gen ./spellchecker2/segments_1 ./spellchecker1 ./spellchecker1/segments.gen .

[symfony-users] Re: Problem when running php symfony command

2010-10-02 Thread comb
do you have a proper database.yml configurationfile? On Oct 2, 1:36 pm, mspallanzani wrote: > Hello, > > I'm using symfony to develop a website but I have a problem when > running the command: > >   "php symfony doctrine:build --all --and-load --no-confirmation" > > I get the following message at

[symfony-users] Re: problem with how to manage image size....

2010-09-25 Thread ScherlOMatic
Hi creates the html code for you ( 'nofollow', 'title' => 'here comes the image title')) ?> Any more questions? BR On 25 Sep., 03:36, Nova Lina wrote: > dear all... i have a problem with manage image on my web im junior > programer, first time using symfony 1.4 > i dont understand how man

Re: [symfony-users] Re: problem with sfWidgetFormChoice

2010-09-24 Thread Eliana Montoya
> > > Hi Gustavo.. I solved my problem!. I change the function doUpdateObject by the function doBind, and it works to perfection Again, thank you very much! Best regards -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received thi

Re: [symfony-users] Re: problem with sfWidgetFormChoice

2010-09-24 Thread Gustavo Adrian
I mean this: User: columns: username: type:string(255) relations: Filetype: class:Filetype local: user_id foreign: filetype_id refClass:UserFiletype Filetype: columns: extension: type: string(10) re

Re: [symfony-users] Re: problem with sfWidgetFormChoice

2010-09-24 Thread Eliana Montoya
Hi Gustavo. the value shown in $values[ 'extension' ] = array(1) { [0]=> string(5) "Array" } when I use sfWidgetFormChoice and sfWidgetFormDoctrineChoice. but y I do not understand when you say me: Finally, you could simply create a many-to-many relationship between your users and your filetypes

Re: [symfony-users] Re: problem with sfWidgetFormChoice

2010-09-23 Thread Gustavo Adrian
Selecting one or more elements, which is the value shown in $values[ 'extension' ] ? do a quick var_dump to see it, and call parent::doUpdateObject at the end of your method, passing to it your modified "$values" array. I didn't notice that you're using sfWidgetFormChoice. Use sfWidgetFormDoctrine

[symfony-users] Re: problem with sfWidgetFormChoice

2010-09-23 Thread eliana m.
hello again Gustavo implement the function that sent me the following manner: public function doUpdateObject( $values = null ) { if ( isset( $values[ 'extension' ] ) ) { $objeto = parent::doUpdateObject(); if(is_array( $values[ 'extension' ] ) &&

Re: [symfony-users] Re: problem with sfWidgetFormChoice

2010-09-23 Thread Gustavo Adrian
Hi, I thinkg you should override the "doUpdateObject" method on the form and change the value of the extension field there. Remember to put a pipe or comma to separate the values on the string.Try this (not tested) on the doUpdateObject method of your form: public function doUpdateObject( $values

[symfony-users] Re: problem with sfWidgetFormChoice

2010-09-23 Thread eliana m.
hi Gustavo ... thank you very much for your response. I'm using symfony 1.4. I need to save the choices the user selects in the field called extension of the database. The schema is: IngeindArchivospermitidos: #connection: doctrine columns: tipo_archivo: { type: string(20), fixed: fals

Re: [symfony-users] Re: problem for view image

2010-09-22 Thread Nova Lina
thankyou^o^ it can help me: ) -- 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@

[symfony-users] Re: problem for view image

2010-09-21 Thread ScherlOMatic
Hello nova! Try reading the documentation... All your questions are mentioned there. But this is a nice forum so I'll give you some answers: Hard to say if you need one module per menu. It depends on your project. You could also create one module and several actions. Both ways do the job pretty w

[symfony-users] Re: Problem links between "view"

2010-09-09 Thread Doc Roms
the problem is resolved; tanks. On 9 sep, 11:30, Doc Roms wrote: > Hello > I have a problem when I set a link with the method generate (); > > I am in a view and I have a link like: >   link > > This link is defined in the routing with: > test: >    Pattern: / test /: id >    defaults: (_bundle

[symfony-users] Re: Problem With Jobeet: Day 5

2010-08-05 Thread David Savage
Hmm, that seems to work if you only want to slug one column in the table. What if I wanted to slug title and category name? Also, I noticed it said you can change the function used to create the slug using the builder option...where can you find a list of the available functions for this? Although,

[symfony-users] Re: Problem with filters

2010-08-05 Thread Tom Ptacnik
One problem might be in that you are changing the 'nom' from text to list Then you have to build query with another method. So you need to overwrite the getFields() method: public function getFields() { $fields = parent::getFields(); $fields['nom'] = 'ForeignKey'; return $fields; }

[symfony-users] Re: Problem with filters

2010-08-04 Thread florian périn
I want this filters to do the role of filter. When I choose for exemple 'non' on enligne, there are only families with 0 on the column enligne. But when I chose this, there is not generated SQL query... So I don't know what to do. On 3 août, 16:35, Tom Ptacnik wrote: > What do you want to this f

[symfony-users] Re: Problem with filters

2010-08-03 Thread Tom Ptacnik
What do you want to this filter to do? And what is does instead? ... look on the generated SQL query which is creaded by the filter. This is the way to go to find your mistake. On 3 srp, 13:16, florian périn wrote: > I use symfony 1.4.5. > > //lib/filter/doctrine/BackendgammeFormFilter.class.php

[symfony-users] Re: Problem with filters

2010-08-03 Thread florian périn
I use symfony 1.4.5. //lib/filter/doctrine/BackendgammeFormFilter.class.php 1 addWidgets(); 16 $this->addValidators(); 17 $this->widgetSchema->setNameFormat('gamme_filters[%s]'); 18 $this->errorSchema = new sfValidatorErrorSchema($this- >validatorSchema); 19 } 20 21

[symfony-users] Re: Problem with filters

2010-08-03 Thread Tom Ptacnik
What means doesn't work? How it looks before ... show BaseFormFilter class, or the schema of the object at least. Which version of Symfony? On 3 srp, 11:01, florian périn wrote: > Hello, > > I wanted to change the type of my filters auto-generate with admin- > generator, but when I did it, the fi

[symfony-users] Re: problem with $form->getObject()

2010-07-27 Thread Tom Ptacnik
Then you can try to set your form like in this http://melikedev.com/2009/12/09/symfony-w-doctrine-saving-many-to-many-mm-relationships/ article and see how Symfony does this. On 26 čnc, 22:51, Devang Modi wrote: > Thanks for info. > I tried something similar but it didn't work. > > In doUpdateObj

[symfony-users] Re: problem with $form->getObject()

2010-07-26 Thread Devang Modi
Thanks for info. I tried something similar but it didn't work. In doUpdateObject $authors = Doctrine::getTable('Dauthor')->createQuery('a')- >where('id=?', '1')->execute(); $this->object->setDauthor($authors); What am I doing wrong? Thanks, Devang. On Jul 26, 5:59 am, Johannes wrote: > I'd upd

[symfony-users] Re: problem with $form->getObject()

2010-07-26 Thread Johannes
I'd update the object directly instead of the values: $this->object->setPublication('test'); $this->object->Authors->get(null); kind regards, Johannes On 26 Jul., 02:18, Devang Modi wrote: > I found doUpdateObject to update publication and it worked. But same > thing I tried with many to many re

[symfony-users] Re: problem with $form->getObject()

2010-07-25 Thread Devang Modi
I found doUpdateObject to update publication and it worked. But same thing I tried with many to many relationship it didn't work. I change my YML; Dauthor: tableName: dauthor columns: id: { type: integer(4), unsigned: true, primary: true, autoincrement: true } name: { type: string

[symfony-users] Re: Problem with doctrine:build

2010-07-03 Thread Tom Ptacnik
One problem is in your schema - there you have differents integer types - type: integer(4), integer - if you want to build a relationship you have to have the same integer types. (integer on both, or integer(4) or integer(8)... On 1 čnc, 17:46, Shawn wrote: > After running through the Jobeet Tuto

Re: [symfony-users] Re: problem

2010-06-07 Thread Pietrino Atzeni
Probably because you edited those files both in localhost and in the webserver. P But why was the server working fine and without visible reason start giving this problem? On 7 Jun, 16:16, saad wrote: Hi, this is probably due to the BOM (byte order mark) used with UTF-8 encoding:http://en.w

Re: [symfony-users] Re: problem

2010-06-07 Thread Pietrino Atzeni
For translation purposes, I'd recommend UTF-8. Anyway, just be consistent in all of your environments. Usually, if you are developing in windows and deploying to linux, you will encounter similar problems, and you'll avoid them using the same encoding in all the machines. Be sure to match Ap

[symfony-users] Re: problem

2010-06-07 Thread wueb
Shouldn't the default be ANSII and not UTF-8? On 7 Jun, 11:23, Pietrino Atzeni wrote: > Try with the home page, before (with all partials and components, if you > have any). > > I think netbeans, pspad and others has automatic conversion to utf-8. > > P > > > All modules pages?? > > > On 7 Jun, 1

Re: [symfony-users] Re: problem

2010-06-07 Thread Pietrino Atzeni
Try with the home page, before (with all partials and components, if you have any). I think netbeans, pspad and others has automatic conversion to utf-8. P All modules pages?? On 7 Jun, 10:51, Pietrino Atzeni wrote: Hi, if I remember well, it's due to the wrong encoding of the symfony file

[symfony-users] Re: problem

2010-06-07 Thread wueb
All modules pages?? On 7 Jun, 10:51, Pietrino Atzeni wrote: > Hi, > if I remember well, it's due to the wrong encoding of the symfony files. > > Ensure that all the pages are encoding in UTF-8, and the problem should > disappear. > > Hope this helps, > Pietro > > > In some of my pages are appeari

[symfony-users] Re: problem rendering embedded form when in edit

2010-05-27 Thread Tofuwarrior
Hi Tom, I have eventually sorted the problem by simply adding the fields to the table, thus removing the need for embedded field, the abstraction of the contact details wasn't actually necessary when I reviewed it BUT I think the issue was to do with where the FK was. With sfGuardUSerProfile the

[symfony-users] Re: problem rendering embedded form when in edit

2010-05-27 Thread Tom Ptacnik
Ok, I think the problem might be in the actions I think you should realy move the embedForm function to the configure method of the form class - the form class will be more compact. And the thing that the rendering of the form is ok, and after the clicking on the save button the problem appers

[symfony-users] Re: problem rendering embedded form when in edit

2010-05-25 Thread Tofuwarrior
HI Tom, Thanks for sticking with me on this, much appreciated. I think I may have tried that before because when I do, 2 familar things happen. 1 Saem problem with the id being 1. 2 is that when I try to view the edit action I get the following form rendering error which dissappears when I commen

[symfony-users] Re: problem rendering embedded form when in edit

2010-05-25 Thread Tom Ptacnik
The problem is, that you have to connect the object of the embeded form with the object of the master form somehow. my embed form usage ... }this code is in the master form class in the configure method] // Embed paymentinfo form $this->embedForm('paymentinfo', new PaymentinfoForm($this->getObjec

[symfony-users] Re: problem rendering embedded form when in edit

2010-05-24 Thread Tofuwarrior
Hi, UPDATE The same problem happens with edit/update not just new/create. Both objects save but FK becomes 1 whatever it was before. P Anyone? On May 24, 1:47 pm, Tofuwarrior wrote: > Hi Tom, > > Thanks for replying.   My problem has moved on. > > I can render the forms fine now but when

[symfony-users] Re: problem rendering embedded form when in edit

2010-05-24 Thread Tofuwarrior
Hi Tom, Thanks for replying. My problem has moved on. I can render the forms fine now but when I save in new mode the system saves the parent(storyteller) and the child (contact_details) objects but doesn't put the right FK reference in the parent so all of the parent objects I save have a chil

[symfony-users] Re: problem rendering embedded form when in edit

2010-05-24 Thread Tom Ptacnik
Show some code of how you embed the form. On 21 kvě, 16:26, Tofuwarrior wrote: > Hi, > > Anyone give me any pointers? I'm stumped and not really sure where to > look. Would really appreciate any help anyone could give, deadline is > looming :-( > > I have an embedded form  that works fine for th

Re: [symfony-users] Re: problem with plugin install

2010-05-14 Thread Alexis de BRUYN
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sometimes when I have an issue with the symfony plugin:install command (for a particular plugin), I'll try with a svn checkout (or export) of the plugin repository. But in your case, this could not be really helpful if you have this issue with the ins

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

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

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

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

[symfony-users] Re: problem with plugin install

2010-05-12 Thread .
I tried it now, but I got the same result. :( Is there a step-by-step guide about how to install plugin for Symfony 1.4.4 ? Thanks! On máj. 11, 18:59, Tom Haskins-Vaughan wrote: > Did you enable them in your ProjectConfiguration class? > > > > On Tue, May 11, 2010 at 10:08 AM, . wrote: > > Hi!

[symfony-users] Re: problem with error message being applied to the form field

2010-05-03 Thread Tom Ptacnik
"Enter a Fee (2nd column)" is an error for receipt_amount and it's showed as an global error? On 1 kvě, 09:27, Michael Hodges wrote: > Hello all, I'm hoping someone can point out my mistake.  For Symfony 1.4.4 > with Doctrine I have a form > to which I've added >     $this->mergePostValidator(n

[symfony-users] Re: Problem with generating forms/classes from YAML file in plugin

2010-04-16 Thread Jo Carter
The plugin class wasn't declared as abstract. Problem solved On Apr 16, 9:37 am, Jo Carter wrote: > This happens with both Symfony 1.1 (old site), and Symfony 1.4 > (upgrade). > > With Symfony 1.4 the problem is worse, because the generated Base > class extends the fake plugin. > > On Apr 12, 3:

[symfony-users] Re: Problem with generating forms/classes from YAML file in plugin

2010-04-16 Thread Jo Carter
This happens with both Symfony 1.1 (old site), and Symfony 1.4 (upgrade). With Symfony 1.4 the problem is worse, because the generated Base class extends the fake plugin. On Apr 12, 3:27 pm, Jo Carter wrote: > I have a bizarre problem with a YAML file creating two copies of a > Plugin class (one

[symfony-users] Re: Problem in creating a Doctrine backend admin module

2010-03-15 Thread Tom Ptacnik
I think your problem is in composite primary key in your Book model. Related topic: http://tohenk.wordpress.com/2009/04/22/using-multiple-primary-keys-in-admin-generator/ On 13 bře, 04:23, "t...@soe" wrote: > I have two tables: headline, review. One-to-many relationship, i.e. > many reviews ma

[symfony-users] Re: Problem with File Upload

2010-02-24 Thread Maicol
Thanks Dennis. Now works fine, but I have another problem: Validation failed in class People 1 field had validation error: * 1 validator failed on image (type) why? thanks -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this gro

[symfony-users] Re: Problem with Doctrine and Join/GroupBy query

2010-02-19 Thread Olivier
Another step on this issue... I've found a workaround: if I set the hydration mode to HYDRATE_NONE, I get the values as expected with several rows in the array. However, it's "not so nice", since I have to do an "array_combine" to get the column names back in the array. If anyone would have a clue

[symfony-users] Re: Problem with Doctrine and Join/GroupBy query

2010-02-19 Thread Olivier
I've been tracking down this issue a little bit more within Doctrine code, especially within the hydrateResultSet function of the Doctrine_Hydrator_Graph object. There is a loop in this function, and I can see that it does fetch the two rows of data: rowData[v] => ([total]=>100, [title] => 'prod_1'

[symfony-users] Re: Problem with Doctrine and Join/GroupBy query

2010-02-18 Thread Olivier
That could have been a reason. Unfortunately, I checked the data and they're all good. What I do not understand is that the query executed directly on mySQL show ywo records when I get only one via Doctrine... On Feb 18, 9:58 pm, Michał Piotrowski wrote: > Hi, > > 2010/2/18 Olivier : > > > > > >

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

2010-02-07 Thread Rodrigo Prado
I'm sorry for inconvenience... It's ok, using in my template the function works... Thanks! On Feb 7, 6:37 am, Azrael wrote: > link_to() is a helper. Helpers are loaded while template processing. Use it > from template. > > 2010/2/7 Eno > > > On Sat, 6 Feb 2010, Rodrigo Prado wrote: > > > > I h

[symfony-users] Re: Problem With User Management

2010-01-19 Thread Darren884
The reason I am not using sfDoctrineGuardUser is because I have 2 user bases I am working with. I will have to find a way around it because I have developed a customer setter for the password. On Jan 19, 11:06 am, ashton honnecke wrote: > Why aren't you using > sfDoctrineGuardUser?http://www.sym

Re: [symfony-users] Re: Problem With User Management

2010-01-19 Thread ashton honnecke
Why aren't you using sfDoctrineGuardUser? http://www.symfony-project.org/blog/2008/11/12/call-the-expert-customizing-sfdoctrineguardplugin yeah, symfony's not your problem. On Tue, Jan 19, 2010 at 11:06 AM, Darren884 wrote: > I am starting to think Symfony does not possess the even common sense

[symfony-users] Re: Problem With User Management

2010-01-19 Thread Tom Ptacnik
What about not to fill the password fields with the encrypted password? And simply validate it and save it only if it's not empty... it's easy, your problem isn't developing in Symfony ;) You have to edit your form class instead of an update action. On 19 led, 19:06, Darren884 wrote: > I am sta

[symfony-users] Re: Problem With User Management

2010-01-19 Thread Darren884
I am starting to think Symfony does not possess the even common sense when it comes to building applications. Once again I will have to reverse engineer the code and add my own ways. On Jan 18, 8:38 pm, Ashton Honnecke wrote: > In the past, when not using sfGuardDoctrineUser I have usually made a

  1   2   3   4   5   >