[symfony-users] How to test forms in a component
Hi Symfony users, How do you write functional tests when the code is in a component ? Exemple: I used to have a form in a page, which I tested like that : info('3 - Status')- get('/en/user/edit-my-profile')- click('Update your status', array('status' = array( 'status' = 'Gloubigoulba' )), array('with_csrf' = true))- with('form')-begin()- hasErrors(false)- end()- Everything was fine, until I moved the form handling code in a component. Now, the web page acts exactly the same way as before, but the previous code raise a big red error of the death: no form has been submitted. Any idea anyone? Cheers. Thibault J. -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] ahDoctrineEasyEmbeddedRelationsPlugin : use a relation from inherited object ?
Hello, I have a schema with 3 objects : Obj Pc Eth Obj has a relation with Eth (one to many) Pc inherits from Obj I've installed the ahDoctrineEasyEmbeddedRelationsPlugin and it works well with Obj, but I can't get it working on Pc. Would it be possible ? If so, how should I do it ? Thanks in advance, Mikael Kermorgant -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: ahDoctrineEasyEmbeddedRelationsPlugin : use a relation from inherited object ?
To be more precise, here's an extract from schema.yml : = Obj: columns: name: type: string(25) num_serie: type: string(45) notnull: true relations: Eth: class: Eth local: id foreign: id_obj type: many cascade: [delete] === Pc: inheritance: extends: Obj type: column_aggregation keyField: id_type_obj keyValue: 1 columns: id_typeOrdi: type: integer(2) notnull: false === Eth: columns: id_obj: type: integer notnull: true adr_ip: type: string(15) notnull: true adr_mac: type: string(17) notnull: true name: type: string(20) notnull: true relations: Obj: local: id_obj foreign: id foreignType: one = -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] ahDoctrineEasyEmbeddedRelationsPlugin : use a relation from inherited object ?
Hey there, I'm the plugin developer. There are few things that need work and I was much too fast to pull the trigger on the 'stable' designation. Won't happen again. To get to the point: may I see your schema.yml? And if you had a few fixtures for me to work with, I'd take a closer look. On another note: I have a more advanced and bugfixed version here but it's not ready yet. Hang in there while I finish this up but it won't be today, sorry. Cheers, Daniel Sent from my iPhone On Feb 16, 2010, at 1:03 PM, Mikael mikael.kermorg...@gmail.com wrote: Hello, I have a schema with 3 objects : Obj Pc Eth Obj has a relation with Eth (one to many) Pc inherits from Obj I've installed the ahDoctrineEasyEmbeddedRelationsPlugin and it works well with Obj, but I can't get it working on Pc. Would it be possible ? If so, how should I do it ? Thanks in advance, Mikael Kermorgant -- 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 symfony-users+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en . -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Filtering a list from the action
Hi, i have tried this: $this-filter = new BirthdayFormFilter(); $this-filter-setDefault('name', 'Peter'); and this: $a = array('name' ='Peter'); $this-filter = new BirthdayFormFilter($a); but they didn't work... I forgot to say i want to give the default value inside an action. Here you have the codes: In actions.class.php: public function executeIndex(sfWebRequest $request) { $this-birthday_list = Doctrine::getTable('Birthday') -createQuery('a') -execute(); $a = array('name' ='Peter'); $this-filter = new BirthdayFormFilter($a); } and indexSuccess.php contents: ?php echo form_tag('birthday/filtrar') ? ?php echo $filter; ? div?php echo submit_tag('Filter') ?/div /form Javi On Feb 15, 7:28 pm, Florian sideral.undergro...@gmail.com wrote: Hello, To my mind, you should use this method: {{{ $this-filter-setDefault('name', 'Peter'); }}} It's more correct, because semantically, you want set a default value to your form, not to your model object! But if you want to set use the contructor of the sfFormFilter BaseForm sfFormSymfony, see it's signature: public function __construct($defaults = array(), $options = array(), $CSRFSecret = null); So you can pass an *array* of default values as first argument. It's different from your Birthday form, which inherits from sfFormDoctrine, see it's signature: public function __construct($object = null, $options = array(), $CSRFSecret = null) here, the first argument has to be null OR a Doctrine ActiveRecord / Object. Hope it helps! /Florian On 15 fév, 16:49, NOOVEO - Christophe Brun c.b...@nooveo.fr wrote: I am working on the 'list' view of a module. The filtered list is displayed via a call to the executeFilter() method, as usual. Now, I create a route and the appropriate method myModuleActions : public function executeUseMyFilter(sfWebRequest $request) { $id = $this-getRoute()-getObject()-getId(); // force the filter value to myotherobj_id = #the id in the route // // ?? // return $this-executeFilter($request); } But I can't find the way to modify the filters and to force the exceuteFilter() method to display only the list of objects having myotherobj_id = $id. De : symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] De la part de Javier Garcia Envoyé : lundi 15 février 2010 14:23 À : symfony-users@googlegroups.com Objet : [symfony-users] Trying to give a default value to a filter form Hi, im trying to give a default value to a field of a filter. I have no problems giving a default value to a form this way: $m = new Birthday(); $m-setName('Peter'); $this-filter = new BirthdayForm($m); But when i try this: $m = new Birthday(); $m-setName('Peter'); $this-filter = new BirthdayFormFilter($m); this error appears: Warning: array_merge() [function.array-merge http://rs.localhost/frontend_dev.php/function.array-merge ]: Argument #2 is not an array in /opt/lampp/htdocs/rs/lib/vendor/symfony/lib/form/sfForm.class.php on line 1023 Any idea? Javi -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/symfony-users?hl=en. -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Javascript files included no matter what
Hi all, I have a project where i commented all include_javascripts statements but they are included anyway. Is it a known issue, or am i missing something? Thank's for your help. -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] ahDoctrineEasyEmbeddedRelationsPlugin : use a relation from inherited object ?
Hi, Another good thing would be it to avoid the creation of 1:1 related object, as Doctrine automatically creates an item when requested. I think we should make this an option (and correct the hasReference which always returns true). Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Tue, Feb 16, 2010 at 1:40 PM, Daniel Lohse annismcken...@googlemail.comwrote: Hey there, I'm the plugin developer. There are few things that need work and I was much too fast to pull the trigger on the 'stable' designation. Won't happen again. To get to the point: may I see your schema.yml? And if you had a few fixtures for me to work with, I'd take a closer look. On another note: I have a more advanced and bugfixed version here but it's not ready yet. Hang in there while I finish this up but it won't be today, sorry. Cheers, Daniel Sent from my iPhone On Feb 16, 2010, at 1:03 PM, Mikael mikael.kermorg...@gmail.com wrote: Hello, I have a schema with 3 objects : Obj Pc Eth Obj has a relation with Eth (one to many) Pc inherits from Obj I've installed the ahDoctrineEasyEmbeddedRelationsPlugin and it works well with Obj, but I can't get it working on Pc. Would it be possible ? If so, how should I do it ? Thanks in advance, Mikael Kermorgant -- 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 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Abridged summary of symfony-users@googlegroups.com - 24 Messages in 12 Topics
Beste, Tot en met 18 februari ben ik niet aanwezig op kantoor. U kunt contact opnemen met Wout Withagen: w...@freshheads.com of 013 5448761. Met vriendelijke groet, Joost Farla joost.fa...@freshheads.com - - freshheads grafisch ontwerp en internet applicaties Dunantstraat 1c | 5017 KC Tilburg | Nederland tel. +31 (0)13 5448761 | fax. +31 (0)13 5448762 i...@freshheads.com | www.freshheads.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-us...@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: Error using sfFacebookConnectPlugin and sfGuardPlugin
Hi Zach, What's the best way to collect extra information about a facebook user, the first time they sign in with facebook connect? you have a snippet in the Developing for Facebook chapter of the More with symfony book http://www.symfony-project.org/more-with-symfony/1_4/en/12-Developing-for-Facebook How do I know it's their first time, and how should I override the default Signin function to do this? Well, that has nothing to do with symfony or Facebook, just develop what you need :-) Fabrice Bernhard -- http://www.theodo.fr -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: sfValidatorPropelUnique with sfValidatorPropelChoiceMany
Override sfValidatorPropelUnique and define a method isUpdate() that return always false On 15 Feb, 15:54, Tomasz Ignatiuk tomek.ignat...@gmail.com wrote: Hi I have a table with unique index of 3 columns. So I use this: $this-validatorSchema-setPostValidator( new sfValidatorPropelUnique(array('model' = 'ProduktPartner', 'column' = array('partner', 'product', 'language'))) ); It works well. But I would like to make some changes in the form. To give a possibility to choose one partner, one product and many languages. I have changed processForm to save for each language different object with the same partner and product. But then, sfValidatorPropelUnique doesn't work. Any ideas how to solve this problem out? -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: sfValidatorPropelUnique with sfValidatorPropelChoiceMany
Unfortunatelly in doesn't help. Still validator passes and Propel Exception occurs (There is already object with same partner,product and language). -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Javascript files included no matter what
On Tue, 16 Feb 2010, Salim wrote: I have a project where i commented all include_javascripts statements but they are included anyway. Is it a known issue, or am i missing something? You commented them out where exactly? Did you clear cache too? -- -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Good practice preview feature in a CMS
My Symfony project is a CMS for a public site. I have two apps : a backend and a frontend. With the backend I manage pages, articles, news, pages templates, ... The frontend is used to navigate on the public site. In the backend, I implemented a preview system. To do that, I moved the modules used to show a page, from the frontend into a plugin (let's call it frontendPlugin). I copied the layouts of the frontend into the backend layout folder. I copied the routes of the frontend used to show a page into the backend route file. and I enabled frontendPlugin modules in the backend application. Thanks to that, when a user manages the website contents using the backend application he can click on a preview button. This preview feature (in backend app) can now use code of the frontend layer (since it is no longer an application but a plugin). Do you think it is the Good practice ? I'm thinking about an another way to make a preview without any file duplication and keeping the frontend layer as an application. I could create a configuration file with the address of the frontend application : all: frontend_url: http://mysite This way the frontend application is thought as a tool used in the backend for preview purposes. What do you think about this idea to resolve the situation (compared to the plugin + little duplication one) ? Thank you, Julien -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Doctrine migrations and inheritance
Hi all, are there any plans that this issue will be fixed in an upcoming version of symfony? http://trac.symfony-project.org/ticket/7272 If not, i think it would be a good idea to mention this in docs. http://www.symfony-project.org/more-with-symfony/1_4/en/09-Doctrine-Form-Inheritance : ... it bundles a lot of great features including behaviors, easy DQL queries, migrations and table inheritance. This is a bit misleading, because migrations and table inheritance together do not work at the moment. -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] sfOutputEscaper::unescape() and html_entity_decode() are using too much time
Hi, I recently profiled a symfony project (using XDebug) containing a largish number of nested components and partials. If I sort the profiling output by the time spent in the individual functions, sfOutputEscaper::unescape() and html_entity_decode() are usually among those with top ranks (specifically on position #3 and #4, only beaten by database stuff). Further investigation showed that this is caused by passing array structures and objects from one component to another. The application is configured with escaping_strategy: on and escaping_method: ESC_SPECIALCHARS, so every time data is passed from a template to a component it gets unescaped, see PartialHelper::_call_component(): // pass unescaped vars to the component if escaping_strategy is set to true $componentInstance-getVarHolder()-add(true === sfConfig::get('sf_escaping_strategy') ? sfOutputEscaper::unescape($vars) : $vars); The next time this same data is passed to a template it gets escaped again, only to be de-escaped later on when its used again in a component ... Rendering the whole page invokes sfOutputEscaper::unescape() about 2 times! Using nested components is a nice way to create modular pages, so changing the basic structure seems to be no solution. So what else can be done to optimize this situation? I tought about using raw values in get_component(), but this is not an option, since the decision wether unescape() (and the html_entity_decode() function used within) is called or not is only based on the 'sf_escaping_strategy' setting, so I would end up with values decoded too many times. Any suggestions for optimizing this situation? -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] object permissions possible?
Hi all, I am pretty new to symfony and would be grateful for anyones advice. I'm trying to work out how to implement an object ownership permissions system. sfGuard seems to do everything except allow me to assign permissions per object. ie: joe bloggs can edit documents, 1,2 4 but (by infererence) not 3 and 5. Is this kind of thing possible or do I need to code my own permissions system. Seems like something people would want, am I thinking the wrong way about this? Thanks, Paul -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] looking for symfony people to interview
Dear symfonians, I am a PhD student in social science conducting research on the social practice of writing and reading computer code, within open source projects like symfony. I would like to take the opportunity of the symfony live conference this week to interview some members of the symfony community. These interviews will address your uses of the symfony code and your participation in the community. If you are interested in my interviewing you (in English or French), please write back to me in private. Interviews would take around 45 minutes of your time (or more if you are interested) and would be kept confidential. I am based in Paris for the next months, so if you live around Paris and are interested, we can also meet up in the next weeks as well. I can, of course, provide more information on my research, if needed. Looking forward to meeting you, Stéphane Couture -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Symfony + Doctrine + MSSQL = imposible ? ....
symfony 1.2: I have one problem: DB abstract layer works good with MySQL, but can't parse properly SAME schema.yml for MSSQL . Errors are like this: SQLSTATE[HY000]: General error: 10007 Could not create constraint. See previou s errors. [10007] (severity 5) []. Failing Query: CREATE TABLE author (id INT NU LL, name VARCHAR(255) NULL UNIQUE, created_at CHAR(19) NULL, updated_at CHAR(19) NULL, PRIMARY KEY([id])) But table Author in my schema.yml is: Author: actAs: { Timestampable: ~ } columns: id: { type: integer, primary: true, autoincrement: true } name: { type: string(255), unique: true } And for MySQL wasn't required that line: id: { type: integer, primary: true, autoincrement: true } I've added it for clear describe the PK field, but there is no reuslts... -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] object permissions possible?
Hi, http://pastebin.com/m1508fa42 This is by-object basis without taking care of inheritance (thus inferencing isn't coded). If you do so, I would really enjoy seeing the code ;-) Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Mon, Feb 15, 2010 at 5:32 PM, Tofuwarrior psbur...@googlemail.comwrote: Hi all, I am pretty new to symfony and would be grateful for anyones advice. I'm trying to work out how to implement an object ownership permissions system. sfGuard seems to do everything except allow me to assign permissions per object. ie: joe bloggs can edit documents, 1,2 4 but (by infererence) not 3 and 5. Is this kind of thing possible or do I need to code my own permissions system. Seems like something people would want, am I thinking the wrong way about this? Thanks, Paul -- 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 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] a way to change l10n .dat for a project?
Hi is there a way to change l10n .dat files for a project? I just want to change the shortdate pattern and i dont want to change the .dat files it self. Is the a yml file where i can put the locate information? Thanks -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Doctrine Admin Generator Foreign Fields Bug
I need to get the same that this link says http://www.blackfinsoftware.com/wordpress/2009/02/automating-__tostring-in-symfony/ but for Doctrine Admin Generator for Symfony 1.4, any clues ? -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] ckWebServicePlugin: how to return doctrine object in webservice
Hey! I want to use this plugin ckWebServicePlugin for develop my WS. In the first time, it easy to test a basic function like Multiply. But I want to return an object Doctrine and I have an error : [16-Feb-2010 11:49:56] PHP Fatal error: SOAP-ERROR: Encoding: object hasn't 'canCid' property in D:\wamp\www\testCk \sf_sandbox_1_2\sf_sandbox\plugins\ckWebServicePlugin\lib\controller \ckWebServiceController.class.php on line 140 [16-Feb-2010 11:49:56] Internal Server Error app.yml: # You can find more information about this file on the symfony website: # http://www.symfony-project.org/reference/1_4/en/11-App # default values all: enable_soap_parameter: off ck_web_service_plugin: persist: %SOAP_PERSISTENCE_SESSION% # the location of your wsdl file wsdl: %SF_WEB_DIR%/MathApi.wsdl # the class that will be registered as handler for webservice requests handler: ckSoapHandler soap_version: %SOAP_1_2% soap: # enable the `ckSoapParameterFilter` enable_soap_parameter: on ck_web_service_plugin: # the location of your wsdl file wsdl: %SF_WEB_DIR%/MathApi.wsdl # the class that will be registered as handler for webservice requests handler: MathApiHandler soap_options: encoding: utf-8 soap_version: %SOAP_1_2% persist: %SOAP_PERSISTENCE_SESSION% classmap: # mapping of wsdl types to PHP types TrCanal: ckGenericObjectAdapter_TrCanal TrQuestionnaire: ckGenericObjectAdapter_TrQuestionnaire TrQuestion: ckGenericObjectAdapter_TrQuestion TrReponse:ckGenericObjectAdapter_TrReponse TrQuestionArray: ckGenericArray TrReponseArray: ckGenericArray filters.yml: # You can find more information about this file on the symfony website: # http://www.symfony-project.org/reference/1_4/en/12-Filters rendering: ~ security: ~ soap_parameter: class: ckSoapParameterFilter param: # `app_enable_soap_parameter` has to be set to `on` so the filter is only enabled in soap mode condition: %APP_ENABLE_SOAP_PARAMETER% # insert your own filters here common: false cache: ~ execution: ~ WSaction: public function executeGetCanal($request) { $this-result = new TrCanal(); $this-result-setCanCid(10); $this-result-setCanCnom(test canal); $this-result-setCanLnom(test code); return sfView::SUCCESS; } TrCanal.class.php ?php /** * @PropertyStrategy('ckDoctrinePropertyStrategy') */ class TrCanal extends BaseTrCanal { public function __toString() { return $this-getCanLnom(); } } Apparently, the ckDoctrinePropertyStrategy do not functionnaly correctly Are you idea? Help me, i don't understand -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Javascript files included no matter what
yes I cleaned the cache. I just figured out that it was sfCommonFilter that includes CSS and JS even if you don't want them. So include_stylesheets and include_javascripts are no more needed in layouts. On 16 fév, 14:40, Eno symb...@gmail.com wrote: On Tue, 16 Feb 2010, Salim wrote: I have a project where i commented all include_javascripts statements but they are included anyway. Is it a known issue, or am i missing something? You commented them out where exactly? Did you clear cache too? -- -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: m:n with orderBy setting in yml is ignored
hm no one with the same problem here? On 15 Feb., 14:41, axel at axel.zu...@gmail.com wrote: hello, using symfony 1.4 with doctrine: how can I add an order by xy to the default doctrine getter example: Event: columns: id: type: integer(4) primary: true title: type: varchar(255) Visitor: class: Visitor refClass: Event2Visitor local: id foreign: id orderBy: name foreignAlias: Visitors Visitor: columns: id: type: integer(4) primary: true name: type: varchar(255) Event2Visitor: columns: eventid: type: integer(4) primary: true visitorid: type: integer(4) primary: true relations: Visitor local: visitorid foreign: id Event: local: eventid foreign: id var event = foreach ( event-getVisitors() ) is ordered by id and not by name, the orderBy name setting in schema.yml seems to be ignored -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: m:n with orderBy setting in yml is ignored
I think there were topic like that, and if I remember right the answer is bad ... it's not possible. On 16 ún, 15:51, axel at axel.zu...@gmail.com wrote: hm no one with the same problem here? On 15 Feb., 14:41, axel at axel.zu...@gmail.com wrote: hello, using symfony 1.4 with doctrine: how can I add an order by xy to the default doctrine getter example: Event: columns: id: type: integer(4) primary: true title: type: varchar(255) Visitor: class: Visitor refClass: Event2Visitor local: id foreign: id orderBy: name foreignAlias: Visitors Visitor: columns: id: type: integer(4) primary: true name: type: varchar(255) Event2Visitor: columns: eventid: type: integer(4) primary: true visitorid: type: integer(4) primary: true relations: Visitor local: visitorid foreign: id Event: local: eventid foreign: id var event = foreach ( event-getVisitors() ) is ordered by id and not by name, the orderBy name setting in schema.yml seems to be ignored -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Able to rename a project?
Isn't changing the project name only about changing the text in the properties.ini? On 15 ún, 22:26, Sid Bachtiar sid.bacht...@gmail.com wrote: I think you can just rename the folder, but the safest thing to do is to do text search of any occurrence of your project name in all files in the project. On Tue, Feb 16, 2010 at 10:21 AM, Darren884 darren...@gmail.com wrote: Is it possible to rename a Symfony project? If so is it easy? -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/symfony-users?hl=en. -- Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] ahDoctrineEasyEmbeddedRelationsPlugin : use a relation from inherited object ?
Hey Stéphane, did I miss something? I'm not following. :) Can you elaborate more about your last post? Thanks! Daniel On 16.02.2010, at 13:52, Stéphane wrote: Hi, Another good thing would be it to avoid the creation of 1:1 related object, as Doctrine automatically creates an item when requested. I think we should make this an option (and correct the hasReference which always returns true). Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Tue, Feb 16, 2010 at 1:40 PM, Daniel Lohse annismcken...@googlemail.com wrote: Hey there, I'm the plugin developer. There are few things that need work and I was much too fast to pull the trigger on the 'stable' designation. Won't happen again. To get to the point: may I see your schema.yml? And if you had a few fixtures for me to work with, I'd take a closer look. On another note: I have a more advanced and bugfixed version here but it's not ready yet. Hang in there while I finish this up but it won't be today, sorry. Cheers, Daniel Sent from my iPhone On Feb 16, 2010, at 1:03 PM, Mikael mikael.kermorg...@gmail.com wrote: Hello, I have a schema with 3 objects : Obj Pc Eth Obj has a relation with Eth (one to many) Pc inherits from Obj I've installed the ahDoctrineEasyEmbeddedRelationsPlugin and it works well with Obj, but I can't get it working on Pc. Would it be possible ? If so, how should I do it ? Thanks in advance, Mikael Kermorgant -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] a way to change l10n .dat for a project?
Hi Danilo, this is not possible. If you have a copy of symfony per project you can hack this, but that is not intended. If you want to have a specific format I would recommend to ensure that yourself rather to take the I18N classes that use the official CLDR/ICU formatting Fabian -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Filtering a list from the action
Hello, What is the error? Have you cleared your navigation history/cache ? ( firefox seems to keep the selected values... ) On 16 fév, 13:42, Javier Garcia tirengar...@gmail.com wrote: Hi, i have tried this: $this-filter = new BirthdayFormFilter(); $this-filter-setDefault('name', 'Peter'); and this: $a = array('name' ='Peter'); $this-filter = new BirthdayFormFilter($a); but they didn't work... I forgot to say i want to give the default value inside an action. Here you have the codes: In actions.class.php: public function executeIndex(sfWebRequest $request) { $this-birthday_list = Doctrine::getTable('Birthday') -createQuery('a') -execute(); $a = array('name' ='Peter'); $this-filter = new BirthdayFormFilter($a); } and indexSuccess.php contents: ?php echo form_tag('birthday/filtrar') ? ?php echo $filter; ? div?php echo submit_tag('Filter') ?/div /form Javi On Feb 15, 7:28 pm, Florian sideral.undergro...@gmail.com wrote: Hello, To my mind, you should use this method: {{{ $this-filter-setDefault('name', 'Peter'); }}} It's more correct, because semantically, you want set a default value to your form, not to your model object! But if you want to set use the contructor of the sfFormFilter BaseForm sfFormSymfony, see it's signature: public function __construct($defaults = array(), $options = array(), $CSRFSecret = null); So you can pass an *array* of default values as first argument. It's different from your Birthday form, which inherits from sfFormDoctrine, see it's signature: public function __construct($object = null, $options = array(), $CSRFSecret = null) here, the first argument has to be null OR a Doctrine ActiveRecord / Object. Hope it helps! /Florian On 15 fév, 16:49, NOOVEO - Christophe Brun c.b...@nooveo.fr wrote: I am working on the 'list' view of a module. The filtered list is displayed via a call to the executeFilter() method, as usual. Now, I create a route and the appropriate method myModuleActions : public function executeUseMyFilter(sfWebRequest $request) { $id = $this-getRoute()-getObject()-getId(); // force the filter value to myotherobj_id = #the id in the route // // ?? // return $this-executeFilter($request); } But I can't find the way to modify the filters and to force the exceuteFilter() method to display only the list of objects having myotherobj_id = $id. De : symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] De la part de Javier Garcia Envoyé : lundi 15 février 2010 14:23 À : symfony-users@googlegroups.com Objet : [symfony-users] Trying to give a default value to a filter form Hi, im trying to give a default value to a field of a filter. I have no problems giving a default value to a form this way: $m = new Birthday(); $m-setName('Peter'); $this-filter = new BirthdayForm($m); But when i try this: $m = new Birthday(); $m-setName('Peter'); $this-filter = new BirthdayFormFilter($m); this error appears: Warning: array_merge() [function.array-merge http://rs.localhost/frontend_dev.php/function.array-merge ]: Argument #2 is not an array in /opt/lampp/htdocs/rs/lib/vendor/symfony/lib/form/sfForm.class.php on line 1023 Any idea? Javi -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/symfony-users?hl=en. -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Filtering a list from the action
Is a problem to set this default filter value in the profilesGeneratorConfiguration class? ... create a method getFilterDefaults() and return an array with default filter values. Or you need to set this in the action? On 16 ún, 13:42, Javier Garcia tirengar...@gmail.com wrote: Hi, i have tried this: $this-filter = new BirthdayFormFilter(); $this-filter-setDefault('name', 'Peter'); and this: $a = array('name' ='Peter'); $this-filter = new BirthdayFormFilter($a); but they didn't work... I forgot to say i want to give the default value inside an action. Here you have the codes: In actions.class.php: public function executeIndex(sfWebRequest $request) { $this-birthday_list = Doctrine::getTable('Birthday') -createQuery('a') -execute(); $a = array('name' ='Peter'); $this-filter = new BirthdayFormFilter($a); } and indexSuccess.php contents: ?php echo form_tag('birthday/filtrar') ? ?php echo $filter; ? div?php echo submit_tag('Filter') ?/div /form Javi On Feb 15, 7:28 pm, Florian sideral.undergro...@gmail.com wrote: Hello, To my mind, you should use this method: {{{ $this-filter-setDefault('name', 'Peter'); }}} It's more correct, because semantically, you want set a default value to your form, not to your model object! But if you want to set use the contructor of the sfFormFilter BaseForm sfFormSymfony, see it's signature: public function __construct($defaults = array(), $options = array(), $CSRFSecret = null); So you can pass an *array* of default values as first argument. It's different from your Birthday form, which inherits from sfFormDoctrine, see it's signature: public function __construct($object = null, $options = array(), $CSRFSecret = null) here, the first argument has to be null OR a Doctrine ActiveRecord / Object. Hope it helps! /Florian On 15 fév, 16:49, NOOVEO - Christophe Brun c.b...@nooveo.fr wrote: I am working on the 'list' view of a module. The filtered list is displayed via a call to the executeFilter() method, as usual. Now, I create a route and the appropriate method myModuleActions : public function executeUseMyFilter(sfWebRequest $request) { $id = $this-getRoute()-getObject()-getId(); // force the filter value to myotherobj_id = #the id in the route // // ?? // return $this-executeFilter($request); } But I can't find the way to modify the filters and to force the exceuteFilter() method to display only the list of objects having myotherobj_id = $id. De : symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] De la part de Javier Garcia Envoyé : lundi 15 février 2010 14:23 À : symfony-users@googlegroups.com Objet : [symfony-users] Trying to give a default value to a filter form Hi, im trying to give a default value to a field of a filter. I have no problems giving a default value to a form this way: $m = new Birthday(); $m-setName('Peter'); $this-filter = new BirthdayForm($m); But when i try this: $m = new Birthday(); $m-setName('Peter'); $this-filter = new BirthdayFormFilter($m); this error appears: Warning: array_merge() [function.array-merge http://rs.localhost/frontend_dev.php/function.array-merge ]: Argument #2 is not an array in /opt/lampp/htdocs/rs/lib/vendor/symfony/lib/form/sfForm.class.php on line 1023 Any idea? Javi -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/symfony-users?hl=en. -- 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 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: Why this don't take the real ID values from DB?
On 2/16/2010 10:12 AM, Tom Ptacnik wrote: Is ID set as primary key in the TEspecialidad table? I found the problem, the PK is compound by 3 fields and Doctrine have problems with this (as far as I know). The solution: leave the PK with just one field. -- Cheers ReynierPM -- 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 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: Filtering a list from the action
On 02/16/2010 04:19 PM, Florian wrote: What is the error? Have you cleared your navigation history/cache ? ( firefox seems to keep the selected values... ) Yes, i cleared it but the default value is not showed.. There isn't any error. -- 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 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: Filtering a list from the action
On 02/16/2010 04:26 PM, Tom Ptacnik wrote: Or you need to set this in the action? Yes, i need to set this in the action. -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Nginx symfony url_for problem
Hi Guys, I am new to symfony. Anyway, I find it easy to follow the jobeet tutorial using Nginx (instead of Apache). However, I have a problem in the Day 3 jobeet actions. http://www.symfony-project.org/jobeet/1_4/Doctrine/en/03 All the links created in the index, edit, show becomes job/job and I got a 404 error if I follow the links when I typed the follows in browsers: http://localhost.localdomain/frontend_dev.php/job but not if the links changed to: http://localhost.localdomain/job I googled it and find it should be related to the AllowOveride All setting in Apache. However, how to set it up in Nginx? -- 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 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: Filtering a list from the action
I give you more code: I have this code below in the index template. The filter form (without Peter as default value, of course..) and Peter are showed. ?php use_helper('Form'); ?. ?php echo form_tag('birthday/filtrar') ? ?php echo $filter; ? div?php echo submit_tag('Filter') ?/div /form ?php echo $filter-getDefault('name'); ? And this is the action: class birthdayActions extends sfActions { public function executeIndex(sfWebRequest $request) { $this-filter = new BirthdayFormFilter(); $this-filter-setDefault('name', 'Peter'); } Javi On 02/15/2010 07:28 PM, Florian wrote: Hello, To my mind, you should use this method: {{{ $this-filter-setDefault('name', 'Peter'); }}} It's more correct, because semantically, you want set a default value to your form, not to your model object! But if you want to set use the contructor of the sfFormFilter BaseForm sfFormSymfony, see it's signature: public function __construct($defaults = array(), $options = array(), $CSRFSecret = null); So you can pass an *array* of default values as first argument. It's different from your Birthday form, which inherits from sfFormDoctrine, see it's signature: public function __construct($object = null, $options = array(), $CSRFSecret = null) here, the first argument has to be null OR a Doctrine ActiveRecord / Object. Hope it helps! /Florian On 15 fév, 16:49, NOOVEO - Christophe Brunc.b...@nooveo.fr wrote: I am working on the 'list' view of a module. The filtered list is displayed via a call to the executeFilter() method, as usual. Now, I create a route and the appropriate method myModuleActions : public function executeUseMyFilter(sfWebRequest $request) { $id = $this-getRoute()-getObject()-getId(); // force the filter value to myotherobj_id = #the id in the route // // ?? // return $this-executeFilter($request); } But I can't find the way to modify the filters and to force the exceuteFilter() method to display only the list of objects having myotherobj_id = $id. De : symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] De la part de Javier Garcia Envoyé : lundi 15 février 2010 14:23 À : symfony-users@googlegroups.com Objet : [symfony-users] Trying to give a default value to a filter form Hi, im trying to give a default value to a field of a filter. I have no problems giving a default value to a form this way: $m = new Birthday(); $m-setName('Peter'); $this-filter = new BirthdayForm($m); But when i try this: $m = new Birthday(); $m-setName('Peter'); $this-filter = new BirthdayFormFilter($m); this error appears: Warning: array_merge() [function.array-mergehttp://rs.localhost/frontend_dev.php/function.array-merge ]: Argument #2 is not an array in /opt/lampp/htdocs/rs/lib/vendor/symfony/lib/form/sfForm.class.php on line 1023 Any idea? Javi -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/symfony-users?hl=en. -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Nginx symfony url_for problem
On Tue, 16 Feb 2010, Arthur Ccube wrote: I am new to symfony. Anyway, I find it easy to follow the jobeet tutorial using Nginx (instead of Apache). However, I have a problem in the Day 3 jobeet actions. http://www.symfony-project.org/jobeet/1_4/Doctrine/en/03 All the links created in the index, edit, show becomes job/job and I got a 404 error if I follow the links when I typed the follows in browsers: http://localhost.localdomain/frontend_dev.php/job but not if the links changed to: http://localhost.localdomain/job I googled it and find it should be related to the AllowOveride All setting in Apache. However, how to set it up in Nginx? symfony uses Apache's mod_rewrite module to route incoming URLs. Im guessing you probably need to replicate this in nginx. http://tinyurl.com/yaqc8xc -- -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] ahDoctrineEasyEmbeddedRelationsPlugin : use a relation from inherited object ?
Oh... I have a fix for that in my local repo. If the relation is 1:1 and it already has a record then I don't show the add empty form. So the user can then only edit that record or delete it. But I smell a bug there... oh, nevermind my previous sentence above. I think that's really a bug because it doesn't deal with that just now. I'm also considering other, more automatic alternatives to the considerNewFormEmptyFields option. I can post my results to a separate branch and I also just moved to GitHub... so if someone wants to help, just fork it here: http://github.com/annismckenzie/ahDoctrineEasyEmbeddedRelationsPlugin Cheers, Daniel On 16.02.2010, at 16:24, Stéphane wrote: Hi, sorry if not explicit enough :) I used your plugin to embedRelations of type 1:1. When newing an object, I fill the form except one 1:1 field and press save. Here, sf/doctrine will automatically create the object even if I specifiy correctly the considerNewFormEmptyFields value. This is not a major problem as it is a doctrine inherited feature ;-) Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Tue, Feb 16, 2010 at 4:16 PM, Daniel Lohse annismcken...@googlemail.com wrote: Hey Stéphane, did I miss something? I'm not following. :) Can you elaborate more about your last post? Thanks! Daniel On 16.02.2010, at 13:52, Stéphane wrote: Hi, Another good thing would be it to avoid the creation of 1:1 related object, as Doctrine automatically creates an item when requested. I think we should make this an option (and correct the hasReference which always returns true). Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Tue, Feb 16, 2010 at 1:40 PM, Daniel Lohse annismcken...@googlemail.com wrote: Hey there, I'm the plugin developer. There are few things that need work and I was much too fast to pull the trigger on the 'stable' designation. Won't happen again. To get to the point: may I see your schema.yml? And if you had a few fixtures for me to work with, I'd take a closer look. On another note: I have a more advanced and bugfixed version here but it's not ready yet. Hang in there while I finish this up but it won't be today, sorry. Cheers, Daniel Sent from my iPhone On Feb 16, 2010, at 1:03 PM, Mikael mikael.kermorg...@gmail.com wrote: Hello, I have a schema with 3 objects : Obj Pc Eth Obj has a relation with Eth (one to many) Pc inherits from Obj I've installed the ahDoctrineEasyEmbeddedRelationsPlugin and it works well with Obj, but I can't get it working on Pc. Would it be possible ? If so, how should I do it ? Thanks in advance, Mikael Kermorgant -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this
[symfony-users] How can I configure a route for a module using a 2-columns key ?
Basically, the related table is an association table : VitrineLivre: actAs: { Timestampable: ~ } columns: vitrine_paragraphe_id: { type: integer(4), primary: true } livre_id: { type: integer(4), primary: true } relations: Livre: type: one local: livre_id foreign: id VitrineParagraphe: type: one local: vitrine_paragraphe_id foreign: id I doctrine:admin-generate-d the module. I insert one object in my database (the 'new' form works). Now, if I want to display the list, Symfony throws an Internal Server Error (500) : The /vitrinelivre/:Array/edit.:sf_format route has some missing mandatory parameters (:Array). The generated route is : vitrine_livre: class: sfDoctrineRouteCollection options: model:VitrineLivre module: vitrinelivre prefix_path: /vitrinelivre column: Array with_wildcard_routes: true The 'column' field must point to a unique column, and that's of course innapropriate in this case. What should I do to get it work ? -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Nginx symfony url_for problem
Hi, here is my working configuration nginx / fastcgi : server { listen 80; server_name www..com; root /../web/; index index.php; location / { if (-f $request_filename) { expires max; break; } if ($request_filename !~ \.(js|htc|ico|gif|jpg|png|css)$) { rewrite ^(.*) /index.php last; } } location /sf/ { root /usr/share/php/symfony/1.4/data/web; expires max; } location ~ \.php($|/) { set $script $uri; set $path_info ; if ($uri ~ ^(.+\.php)(/.+)) { set $script $1; set $path_info $2; } fastcgi_pass 127.0.0.1:9000; include /etc/nginx/fastcgi_params; fastcgi_param SCRIPT_FILENAME /.../web$script; fastcgi_param PATH_INFO$path_info; fastcgi_param SCRIPT_NAME $script; fastcgi_intercept_errors on; } } On 16 fév, 16:50, Arthur Ccube arthurcc...@gmail.com wrote: Hi Guys, I am new to symfony. Anyway, I find it easy to follow the jobeet tutorial using Nginx (instead of Apache). However, I have a problem in the Day 3 jobeet actions. http://www.symfony-project.org/jobeet/1_4/Doctrine/en/03 All the links created in the index, edit, show becomes job/job and I got a 404 error if I follow the links when I typed the follows in browsers:http://localhost.localdomain/frontend_dev.php/job but not if the links changed to:http://localhost.localdomain/job I googled it and find it should be related to the AllowOveride All setting in Apache. However, how to set it up in Nginx? -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Symfony + Doctrine + MSSQL = imposible ? ....
hi , i has the same problem but try this. create your schema with a tool may be mysql-query-browser and after run symfony doctrin:build-schema, build-model , build-filters , build-forms when your need add a filed, add fileld with mysql-query-browser and after rebuild your schema. regards , sorry for my inglish On Mon, Feb 15, 2010 at 11:05 PM, KeKc kekc...@gmail.com wrote: symfony 1.2: I have one problem: DB abstract layer works good with MySQL, but can't parse properly SAME schema.yml for MSSQL . Errors are like this: SQLSTATE[HY000]: General error: 10007 Could not create constraint. See previou s errors. [10007] (severity 5) []. Failing Query: CREATE TABLE author (id INT NU LL, name VARCHAR(255) NULL UNIQUE, created_at CHAR(19) NULL, updated_at CHAR(19) NULL, PRIMARY KEY([id])) But table Author in my schema.yml is: Author: actAs: { Timestampable: ~ } columns: id: { type: integer, primary: true, autoincrement: true } name: { type: string(255), unique: true } And for MySQL wasn't required that line: id: { type: integer, primary: true, autoincrement: true } I've added it for clear describe the PK field, but there is no reuslts... -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] change default sfRoute class
Hi, if someone are not going to sfLive i would like know how to change the default class which generate route (replace sfRoute by my own generate route class which extends sfRoute), may be with sfCoreAutoload::make() or a configuration file ? Thxs. -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] pkcontextcms is now apostrophe
Here at #sflive2010 I've talked to many people who drew a blank when I mentioned Apostrophe but recognized pkcontextcms, the old name for our Symfony-based content management system. That was a helpful reminder that we might not have emphasized this clearly: Apostrophe is the new name of pkcontextcms and represents continuous improvement and evolution of that plugin, not an entirely new project. You can find apostrophePlugin here: http://www.symfony-project.org/plugins/apostrophePlugin The README gets cut off there, so check out: http://www.apostrophenow.com/home/readme And also: http://trac.apostrophenow.org/ We changed the name because Context was already in use as the name of a CMS. We also took the opportunity to greatly shorten and improve all class and function names, while providing a migration task you can use if you have old pkContextCMS projects you'd like to bring along to Apostrophe. Thanks for your understanding! -- Tom Boutell P'unk Avenue 215 755 1330 punkave.com window.punkave.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-us...@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: Javascript files included no matter what
That's not really true. First of all, sfCommonFilter has been deprecated in 1.3 and removed in 1.4 [1], and with the include functions you can specify where to put the include statements (like javascripts are recommended to be included right before the /body tag). [1] http://www.symfony-project.org/tutorial/1_4/en/upgrade#chapter_161aacbf11b8cc24bbdc6951ba0fb57d_sub_removal_of_the_common_filter On Tue, Feb 16, 2010 at 15:38, Salim salim.semao...@gmail.com wrote: yes I cleaned the cache. I just figured out that it was sfCommonFilter that includes CSS and JS even if you don't want them. So include_stylesheets and include_javascripts are no more needed in layouts. On 16 fév, 14:40, Eno symb...@gmail.com wrote: On Tue, 16 Feb 2010, Salim wrote: I have a project where i commented all include_javascripts statements but they are included anyway. Is it a known issue, or am i missing something? You commented them out where exactly? Did you clear cache too? -- -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: ahDoctrineEasyEmbeddedRelationsPlugin : use a relation from inherited object ?
On 16 fév, 13:40, Daniel Lohse annismcken...@googlemail.com wrote: Hey there, I'm the plugin developer. There are few things that need work and I was much too fast to pull the trigger on the 'stable' designation. Won't happen again. To get to the point: may I see your schema.yml? And if you had a few fixtures for me to work with, I'd take a closer look. On another note: I have a more advanced and bugfixed version here but it's not ready yet. Hang in there while I finish this up but it won't be today, sorry. Cheers, Daniel Sent from my iPhone Hello, I sent you the complete schema.yml and some fixture on your email i...@asapdesign.de I guess my concern has something to do with the following line in lib / form / ahBaseFormDoctrine.class.php : $this-getObject()-getTable()-getRelation($relationName); Regards Mikael -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Good practice preview feature in a CMS
Hey , this is an information about the current preview system. Because all partials and all components use by the selected layout are in the frontendPlugin, I just have to prepare datas in the action to render the preview. Thanks to Doctrine relations I don't have to save any object's modifications in DB. My preview action : public function executePreview(sfWebRequest $request) { $this-in_page = $this-getRoute()-getObject(); $this-form = $this-configuration-getForm($this-in_page); $this-in_page = $this-processPreviewForm($request, $this-form); $this-forward404Unless($this-in_page); $this-recherche = null; if(!is_null($this-in_page-getInLayout()-getName())) { $layout=$this-in_page-getInLayout()-getName(); $metas = $this-in_page-getAllMetas(); $this-getContext()-getRequest()-setAttribute('meta_description', $metas['descriptions']); $this-getContext()-getRequest()-setAttribute('meta_keywords', $metas['keywords']); $this-getContext()-getRequest()-setAttribute('category', $this- in_page-getInCategory()); $this-getContext()-getRequest()-setAttribute('page_id', $this- in_page-getId()); } $response = $this-getResponse(); $response-addStyleSheet('styles.css'); $response-addStyleSheet('menu.css'); $response-addStyleSheet('menu-v.css'); $response-addStyleSheet('gbx_simple.css'); $response-addStyleSheet('styles_menu.css'); $response-addStyleSheet('styles_shirka.css'); $response-addStyleSheet('styles_vh.css'); $response-addJavascript('jquery-1.3.2.min.js'); $response-addJavascript('jquery.gbx-1.0.1.js','last'); $response-addJavascript('jsmenu.js'); $response-addJavascript('scripts.js'); $response-addJavascript('jquery.scrollTo-min.js'); $response-addJavascript('jshead.js'); $response-addJavascript('carroussel.js'); $response-addJavascript('jcarousel.pack.js'); $response-addJavascript('http://maps.google.com/maps/api/js? sensor=true'); $response-addJavascript('frontend.js'); $this-setLayout($layout); } public function processPreviewForm(sfWebRequest $request, sfForm $form) { $form-bind($request-getParameter($form-getName()), $request- getFiles($form-getName())); if ($form-isValid()) { $page = $form-previewObject(); foreach ($request-getParameter('zone') as $zone_id=$zone) { foreach ($zone['content'] as $content) { if( != $content) { $relation = new InRelationship(); $relation-in_article_id = $content; $relation-in_page_id = $page-getId(); $relation-in_zone_id = $zone_id; $relation-in_template_id = $zone['template']; $page-Relationships[] = $relation; } } } return $page; } else { $this-getUser()-setFlash('error', 'The item has not been previewed due to some errors.', false); } } Yes this code can be refactor ;) So do you think there is a better way to do a preview ? Julien -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: ahDoctrineEasyEmbeddedRelationsPlugin : use a relation from inherited object ?
On Feb 16, 7:05 pm, Mikael mikael.kermorg...@gmail.com wrote: On 16 fév, 13:40, Daniel Lohse annismcken...@googlemail.com wrote: Hey there, I'm the plugin developer. There are few things that need work and I was much too fast to pull the trigger on the 'stable' designation. Won't happen again. To get to the point: may I see your schema.yml? And if you had a few fixtures for me to work with, I'd take a closer look. On another note: I have a more advanced and bugfixed version here but it's not ready yet. Ouch, stupid me : I was wrong from the beginning. The generator.yml for the 'pc' module was modified and the 'form' entry limited to some fields... Sorry for the trouble :( Regards, Mikael -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: How can I configure a route for a module using a 2-columns key ?
Anyone knows why the subject of the thread change? Javi On Feb 16, 5:56 pm, NOOVEO - Christophe Brun c.b...@nooveo.fr wrote: Basically, the related table is an association table : VitrineLivre: actAs: { Timestampable: ~ } columns: vitrine_paragraphe_id: { type: integer(4), primary: true } livre_id: { type: integer(4), primary: true } relations: Livre: type: one local: livre_id foreign: id VitrineParagraphe: type: one local: vitrine_paragraphe_id foreign: id I doctrine:admin-generate-d the module. I insert one object in my database (the 'new' form works). Now, if I want to display the list, Symfony throws an Internal Server Error (500) : The /vitrinelivre/:Array/edit.:sf_format route has some missing mandatory parameters (:Array). The generated route is : vitrine_livre: class: sfDoctrineRouteCollection options: model: VitrineLivre module: vitrinelivre prefix_path: /vitrinelivre column: Array with_wildcard_routes: true The 'column' field must point to a unique column, and that's of course innapropriate in this case. What should I do to get it work ? -- 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 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: ahDoctrineEasyEmbeddedRelationsPlugin : use a relation from inherited object ?
So, to clarify: there was no issue here. Please be so kind to answer that because I don't want people hanging in the balance with code that does not work. Cheers, Daniel On 16.02.2010, at 19:36, Mikael wrote: On Feb 16, 7:05 pm, Mikael mikael.kermorg...@gmail.com wrote: On 16 fév, 13:40, Daniel Lohse annismcken...@googlemail.com wrote: Hey there, I'm the plugin developer. There are few things that need work and I was much too fast to pull the trigger on the 'stable' designation. Won't happen again. To get to the point: may I see your schema.yml? And if you had a few fixtures for me to work with, I'd take a closer look. On another note: I have a more advanced and bugfixed version here but it's not ready yet. Ouch, stupid me : I was wrong from the beginning. The generator.yml for the 'pc' module was modified and the 'form' entry limited to some fields... Sorry for the trouble :( Regards, Mikael -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: ahDoctrineEasyEmbeddedRelationsPlugin : use a relation from inherited object ?
On Feb 16, 8:19 pm, Daniel Lohse annismcken...@googlemail.com wrote: So, to clarify: there was no issue here. Exactly. Regards, Mikael -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Javascript files included no matter what
On 02/16/2010 01:50 PM, Salim wrote: Hi all, I have a project where i commented all include_javascripts statements but they are included anyway. Is it a known issue, or am i missing something? Thank's for your help. Have you tried plugin:publish-assets? In the inverse direction (i had to execute it to load .js files from plugins if they are not being loaded) works. Javi -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: change default sfRoute class
Hi, I am at sfLive.. :-) One (maybe not the single possible) answer to your question: specify your custom route class in routing.yml. For the details, see the beginning of this chapter: http://www.symfony-project.org/reference/1_4/en/10-Routing Cheers, RAPHAEL -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: change default sfRoute class
I see no solutions, sfRoute was define in sfRoutingConfigHandler, so go to define in routing.yml On 16 fév, 18:23, Mathieu Tricoire mathieu.trico...@gmail.com wrote: Hi, if someone are not going to sfLive i would like know how to change the default class which generate route (replace sfRoute by my own generate route class which extends sfRoute), may be with sfCoreAutoload::make() or a configuration file ? Thxs. -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Propel PDO Error 2053 - Ubuntu 9.10
Hello folks, I suppose this may be more for the Propel folks, but I thought I'd reach out here. I just rebuilt my desktop dev machine with Ubuntu 9.10, and now have a strange error that did not occur in previous versions of Ubuntu, or on our staging / QA / production servers, which all run CentOS. it must be that this version of Ubuntu is using a different version of PHP of PDO that has the error. I'm just wondering if any of you have hit this bug. I'm getting the error described here: http://propel.phpdb.org/trac/ticket/323 If I use $criteria-add(self::CLOSED, false); - I get the error. If I use $criteria-add(self::CLOSED, 0);, I do not get the error. The strange thing is that I've verified that my version of Propel still has the patch / workaround in it that is mentioned in the above trac bug report. So, I'm not sure why I'm still getting it. Here are the versions of everything that I'm using: DEV MACHINE: Ubuntu 9.10 Symfony: 1.2.7 (also tried 1.2.11 - got same result) PHP: PHP 5.2.10-2ubuntu6.4 with Suhosin-Patch 0.9.7 (cli) (built: Jan 6 2010 22:56:44) / Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies PDO MySQL was installed with pecl install PDO_MYSQL - it reports version PDO Driver for MySQL, client library version 5.1.37 PRODUCTION: CentOS 5.3 Symonfy: 1.2.7 PHP: PHP 5.2.6 (cli) (built: May 5 2008 10:32:59) / Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies PDO - installed from Jason Litka's repos - it reports version PDO Driver for MySQL, client library version 5.0.58 So, the weird thing is that in my dev environment I have newer versions of PDO and PHP - but am getting the error - even with the Propel workaround that's apparently worked for three years judging by the date of that trac report. Any ideas? Jeremy Thomerson -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: change default sfRoute class
My apologies if I misunderstood your question, and perhaps you may elaborate a bit more on your specific situation. You want to replace sfRoute by your own class in general for all routes (unless explicitly specified in routing.yml)? What sort of routes have you then defined in routing.yml, e.g. sfDoctrineCollectionRoute/ sfPropelCollectionRoute? (I guess you must still have some sort of route definitions in there, right?) -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] ahDoctrineEasyEmbeddedRelationsPlugin : use a relation from inherited object ?
Hey there, so... after a little fight with my new friend git and GitHub my bugfixes are finally available to you. I fixed a few things, just have a look at the changelog. Working with 1:1-relations is now easier and doesn't embed the add new form if there already is a related object – stupid me for not getting that in the first place! :) Also, the problem you mentioned is also gone, there's method in the Doctrine (relatedExists($relationName)) that does not add that object automatically, it really just peeks and doesn't do anything stupid. :) Now, the next problems I want to tackle are outlined in the TODO, if you want to add something, please do so here. Or you can fork the whole thing on GitHub if you want. Cheers, Daniel On 16.02.2010, at 16:24, Stéphane wrote: Hi, sorry if not explicit enough :) I used your plugin to embedRelations of type 1:1. When newing an object, I fill the form except one 1:1 field and press save. Here, sf/doctrine will automatically create the object even if I specifiy correctly the considerNewFormEmptyFields value. This is not a major problem as it is a doctrine inherited feature ;-) Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Tue, Feb 16, 2010 at 4:16 PM, Daniel Lohse annismcken...@googlemail.com wrote: Hey Stéphane, did I miss something? I'm not following. :) Can you elaborate more about your last post? Thanks! Daniel On 16.02.2010, at 13:52, Stéphane wrote: Hi, Another good thing would be it to avoid the creation of 1:1 related object, as Doctrine automatically creates an item when requested. I think we should make this an option (and correct the hasReference which always returns true). Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Tue, Feb 16, 2010 at 1:40 PM, Daniel Lohse annismcken...@googlemail.com wrote: Hey there, I'm the plugin developer. There are few things that need work and I was much too fast to pull the trigger on the 'stable' designation. Won't happen again. To get to the point: may I see your schema.yml? And if you had a few fixtures for me to work with, I'd take a closer look. On another note: I have a more advanced and bugfixed version here but it's not ready yet. Hang in there while I finish this up but it won't be today, sorry. Cheers, Daniel Sent from my iPhone On Feb 16, 2010, at 1:03 PM, Mikael mikael.kermorg...@gmail.com wrote: Hello, I have a schema with 3 objects : Obj Pc Eth Obj has a relation with Eth (one to many) Pc inherits from Obj I've installed the ahDoctrineEasyEmbeddedRelationsPlugin and it works well with Obj, but I can't get it working on Pc. Would it be possible ? If so, how should I do it ? Thanks in advance, Mikael Kermorgant -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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 symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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