Re: [symfony-users] Routing different in prod and dev

2009-11-30 Thread Gareth McCumskey
Did you clear cache? On Mon, Nov 30, 2009 at 4:08 AM, ashton ahonn...@gmail.com wrote: I'm struggling with a routing issue. New project, and I have an index module, and a 'list' action and 'index' action. These urls work: /frontend_dev.php/index/index (in dev) /index/index

[symfony-users] sfDoctrineGuard Plugin uses deprecated Stuff

2009-11-30 Thread Christopher Schnell
Hi all, I just upgraded a new project to 1.4 and ran the project:validate Task. It shows an error in sfDoctrineGuard Plugin, meaning that it is not ready for 1.4. The error reads as follows: 1. 7. Checking usage of array notation with a parameter holder 2.

Re: [symfony-users] Using extended class in functional tests

2009-11-30 Thread basos g
2009/11/20 Peter Theill the...@gmail.com I have added setUid and getUid methods in my myUser.class.php but when I'm running my functional tests I'm not able to use these methods. I get: sfException: Call to undefined method myUser::setUid. My myUser.php.class looks like this: ?php

[symfony-users] Re: Accesing the messages sent to the user in my social network

2009-11-30 Thread tirengarfio
Thanks Gábor, I finally use a query also. This time i would like to show the username of the person who send the message next to the title and the text of the message. I've thought the solution could be execute this query below: class MensajeTable extends Doctrine_Table { public

[symfony-users] Re: Accesing the messages sent to the user in my social network

2009-11-30 Thread tirengarfio
Solved: i made this mistake: ?php echo $mensaje-getUsername() ? instead of ?php echo $mensaje- getUser()-getUsername() ? Javi On Nov 30, 5:57 am, tirengarfio tirengar...@gmail.com wrote: Thanks Gábor, I finally use a query also. This time i would like to show the username of the person who

Re: [symfony-users] sfDoctrineGuard Plugin uses deprecated Stuff

2009-11-30 Thread Fabien Potencier
Christopher Schnell wrote: Hi all, I just upgraded a new project to 1.4 and ran the project:validate Task. It shows an error in sfDoctrineGuard Plugin, meaning that it is not ready for 1.4. The error reads as follows: 1. 7. Checking usage of array notation with a parameter

[symfony-users] Where to put the logic?

2009-11-30 Thread Georg Gell
Hello, in my application, I would like to have this logic: When I add a client, I would like to autmatically add an admin user for the client. For me this belongs to the client object logic, and I have put it in postInsert. But if I use doctrine:data-dump and afterwards doctrine:data-load, I

Re: [symfony-users] Re: DBFinderPlugin future

2009-11-30 Thread David Herrmann
Tony Piper wrote: +1 from me. It would be great if François could update it for Propel 1.4 and Symfony 1.3/1.4 compatibility - it would probably take him just a few minutes (relative to how long it would take me)… The lack of DbFinder is a show-stopper for my 1.2-1.3 upgrade testing and

[symfony-users] Doctrine Query

2009-11-30 Thread jilomgv3
Well, I really need help. This might be a stupid error but I can't figure it out symfony 1.2 / Doctrine sfDoctrineGuardUser sfDoctrineApplyPlugin schema for the apply / business logic is : sfGuardUserProfile: tableName: sf_guard_user_profile columns: id: {

[symfony-users] Symfony Upgrade Day?

2009-11-30 Thread Szabolcs Heilig
Hello, I have a (maybe not bad) idea: What about to organize a worldwide Symfony Upgrade Day. I think it will be a weekend day. At this day people can organize small events in their town to help each other in upgrading their projects. It will be good when core developers can join this event

Re: [symfony-users] Re: Accesing the messages sent to the user in my social network

2009-11-30 Thread Gareth McCumskey
I was just going to respond that Username would be in the join with User and so you would need to use getUser() to get the Username from the join itself On Mon, Nov 30, 2009 at 1:51 PM, tirengarfio tirengar...@gmail.com wrote: Solved: i made this mistake: ?php echo $mensaje-getUsername() ?

[symfony-users] Symfony Upgrade Day

2009-11-30 Thread Heilig Szabolcs
Hello, I have a (maybe not bad) idea: What about to organize a worldwide Symfony Upgrade Day? I think it will be a weekend event. At this day people can organize small events in their town to help each other in upgrading their projects. It will be good if core developers can join this event

[symfony-users] Updating existing database records with symfony forms

2009-11-30 Thread Rytis Daugirdas
Hello, I accidentally noticed that by default symfony generated forms allow updating of existing objects without passing the primary key(s) in the $taintedValues array which results in odd behavior (to me, anyway). Here's a simple example: $f = new

[symfony-users] sf1.4+doctrine how to override setter in model

2009-11-30 Thread lking
i have this schema Product: columns: name:string(255) description: clob price: { type: decimal, scale: 4 } Order: tableName: m_order columns: total: { type: decimal, scale: 4 } relations: Items: class:

[symfony-users] symfony 1.4 unable to create M:N relationship

2009-11-30 Thread roy master
Hello, I can't create tables for M:N relationship in symfony 1.4. What am I doing wrong? It should be relation between products and categories in an e-shop. (I first made symfony doctrine:build-schema and only slightly modified it to achieve foreign key creation. Without success :( ) schema.yml

[symfony-users] Re: sfDoctrineGuard Plugin uses deprecated Stuff

2009-11-30 Thread David
I also upgrade to 1.4 and when I use the sfGuardUser backend, it throws an error when I try to edit a user: Fatal error: Call to a member function setLabel() on a non-object in plugins/sfDoctrineGuardPlugin/lib/form/doctrine/base/ BasesfGuardUserAdminForm.class.php on line 26 I have no idea how

[symfony-users] REST protocol problem while installing plugin from my own pear channel

2009-11-30 Thread mikael.randy
Good morning America ... oops, just symfony community xD I come now to find you for a very strange stuff. For my company, i would install my own pear server to put my private symfony plugins in (some plugins who we dont want to open source code). I have tried to use Chiara, and today, i try

[symfony-users] Symfony 1.3 + sfGuard 4.0.0 Plugin

2009-11-30 Thread micon
when i install the new sfGuard plugin under symfony 1.3 i get : Fatal error: Class 'sfPropelBaseTask' not found in /var/www/felderweb/ nr1-devel/plugins/sfGuardPlugin/lib/task/ sfGuardCreateUserTask.class.php on line 19 Call Stack: 0.0003 57748 1. {main}() /var/www/felderweb/nr1-devel/

[symfony-users] move_uploaded_file with a twist

2009-11-30 Thread Parijat Kalia
Hey guys, I am making use of move_uploaded_file to upload a bunch of files from my website onto a server, as it goes: move_uploaded_file($_FILES['filename']['tmp_name'],'path/to/store/image') And this works like a charm. But there is a trick here, I wish to make these files reside on some

Re: [symfony-users] issue about selecting objects in an inheritance context

2009-11-30 Thread Patrick NDJIENTCHEU
Many thanks Alex, It works fine. On Sun, Nov 29, 2009 at 11:51 AM, Alexandre SALOME alexandre.sal...@gmail.com wrote: You can get the raw value in template (don't absue of it) : $rawValue = $add-getRawValue(); and then do your tests : if ($rawValue instanceof myClass) { //... }

Re: [symfony-users] Using sfForm as standalone library

2009-11-30 Thread Bernhard Schussek
Hi Manuel, Just copy the directories widget, form and validator from the symfony lib directory to your project. Make sure they are loaded by writing your own autoloading routine or by requiring the files manually. Then you should be fine to go. Bernhard -- You received this message because you

Re: [symfony-users] Where to put the logic?

2009-11-30 Thread Bernhard Schussek
Hi Georg, Why don't you just override the save() method of the Client class? You could, for example, check whether any user is associated with the client and, if not, do it manually before calling parent::save(). I personally would prefer to put this logic into the form for creating the Client

Re: [symfony-users] Using extended class in functional tests

2009-11-30 Thread Bernhard Schussek
Did you check whether factories.yml is configured to use the correct user class in the test environment? Do you maybe have several myUser classes in your project and symfony is using the wrong one? Bernhard -- You received this message because you are subscribed to the Google Groups symfony

Re: [symfony-users] Where to put the logic?

2009-11-30 Thread Stéphane
The controller isn't responsible for application logic. It must be in your model (if you can...). For this kind of case, I would prefer playing with events. For example, when user is created just dispatch an event like users.user.new or whatever sounds like. Then connect the app-logic method that

[symfony-users] Invitation à se connecter sur Linke dIn

2009-11-30 Thread Olivier Albertini
LinkedIn J'aimerais vous inviter à rejoindre mon réseau professionnel en ligne, sur le site LinkedIn. Olivier Veuillez confirmer que vous connaissez Olivier Albertini https://www.linkedin.com/e/isd/897798202/fW_knR1b/ Tous les jours, des millions de professionnels comme

[symfony-users] Re: Guardar formularios embebidos

2009-11-30 Thread Germana Oliveira
Resulta que tengo problemas para guardar mis formularios embebidos, asi que trate de hacer lo que es amigo Stefan me recomendo (al final de este mensaje), pero me arroja el siguiente error: Unable to execute INSERT statement. [wrapped: SQLSTATE[23000]: Integrity constraint violation: 1452

Re: [symfony-users] Re: Guardar formularios embebidos

2009-11-30 Thread Augusto Flavio
Hi, i dont know how are you doing it but a some weeks ago i worked with embedform using symfony 1.2 - Doctrine as ORM. I wrote a article about it in portuguese. Maybe you understand a bit because the portuguese is a language near to spanish. Here is the link of the article:

[symfony-users] Re: symfony 1.4 unable to create M:N relationship

2009-11-30 Thread lking
hi, Roy. did you looked to http://www.symfony-project.org/doctrine/1_2/en/04-Schema-Files#chapter_04_sub_many_to_many ? hope it will help. On 30 ноя, 02:49, roy master roymast...@gmail.com wrote: Hello, I can't create tables for M:N relationship in symfony 1.4. What am I doing wrong? It

[symfony-users] Public Accessible Code

2009-11-30 Thread Paul Witschger
I want to build some extras (plugins, add ons, whatever), that I can offer to clients. These add ons will be things like photo galleries, news article listings, blogs, etc. I want to put these add ons in a location where any and all projects have access to them. I don't want to have to copy

Re: [symfony-users] Public Accessible Code

2009-11-30 Thread Eno
On Mon, 30 Nov 2009, Paul Witschger wrote: I want to put these add ons in a location where any and all projects have access to them. I don't want to have to copy the folder structure to their project. But, I also don't want to modify the symfony core folder structure. Is there a way to do

[symfony-users] doctrine

2009-11-30 Thread Antoine S.
I used a lot with propel the possibilty to add a criteria to a generated function. Example : a product has categories, it will generate : public function getProductCategories($criteria = null, $con = null) { } and then I could easily refined with a criteria. But with doctrine it seems not

[symfony-users] gmail problem

2009-11-30 Thread Ben Akacha Khalil
How can I block mail symfony group because I always suppime the mail received? -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to