[symfony-users] Re: how to use short Document class name in find()?

2010-09-13 Thread Florian
hi! have a look in the cache/*container*.php and look at the getDoctrine_orm_*service methods. the Configuration class on EntityManager gives you a way to configure the namespaces used in a Dql query.

[symfony-users] Re: how to use short Document class name in find()?

2010-09-13 Thread Florian
sorry, with ODM it's DocumentManager On 13 sep, 08:11, Florian sideral.undergro...@gmail.com wrote: hi! have a look in the cache/*container*.php and look at the getDoctrine_orm_*service methods. the Configuration class on EntityManager gives you a way to configure the namespaces used in a Dql

[symfony-users] Working with Symfony and Git (collaboration)

2010-09-13 Thread Darmen
Hello everyone, Suppose we have a Project with three applications — A, B and C. Our team: Jack, Susan and Martin. And one project leader — David. Each programmer is working on their own application: A - Jack B - Susan C - Martin So, there is a problem with source code management. How to

[symfony-users] Re: Choosing the best JS toolkit plugin for RIA

2010-09-13 Thread Florian
hi for extjs, have a look at atollExt3Plugin On 10 sep, 16:09, Daniel Toffetti dto...@gmail.com wrote: Greg,     I've never heard of it and have to take a deeper look, but the idea of sending all the business logic to the client sounds weird to me, and besides we want to minimize the coding

[symfony-users] Are the design of Symfony2 and Doctrine2 in right direction?

2010-09-13 Thread Fangzx
I play Symfony2 and Doctrine2 for two weeks, and I came from Java(5years) and Python/Django(3years). My questions: 1. Doctrine2 is so like Java Hibernate and is too heavy, I don't like that, for example, why not use pulic properties directly instead of setter and getter in the entity class. 2.

[symfony-users] Re: mobile site strategy

2010-09-13 Thread popofr13
How do you manage the case which symfony actions are different between mobile and not mobile website ? Case Study : Home page In the not mobile website, we could display 3 modules (each connected to some data in database) In the mobile, we could only display 1 module Note: in this case, only

Re: [symfony-users] Re: Tabs in Auto-Generated Code

2010-09-13 Thread Felix E. Klee
On Sun, Sep 12, 2010 at 2:20 PM, Davide Borsatto lloy...@gmail.com wrote: Which generated file are you referring to? It may be a Propel or Doctrine issue. The tabs are indeed in the model files, auto generated by Propel 1.4.2. Thanks for pointing me in the right direction. Now it would be nice

[symfony-users] Re: How to display/get the info-related to the main form on the embedded form?

2010-09-13 Thread rdcklinux
$alumnos_internos = $this-getObject()-getgetAlumnoInternos(); $alumno_interno = $alumnos_internos[0]; Debes hacer eso porque en schema.yml no definiste la relación como uno a uno basta que con sólo definas: type: one foreignType: one y cambia el foreignAlias a AlumnoInterno en las relaciones

[symfony-users] sfValidatorDoctrineUnique

2010-09-13 Thread corneliusparkin
Hi I have been struggling with this functionality for more than a week now and really hope someone can help me. In the doctrine/schema.yml file, I specify a column code to be unique. i.e. code: type: string(10) fixed: false unsigned: false primary: false default: ''

[symfony-users] The module and action names are not present in the internal URI?

2010-09-13 Thread Felix E. Klee
In Practical symfony for Propel, it says: The /job/show/id/1 URL can be created from a template by using the following call to the url_for() helper: url_for('job/show?id='.$job-getId()) You can also use the route name by prefixing it by @:

Re: [symfony-users] sfValidatorDoctrineUnique

2010-09-13 Thread Daniel Lohse
You might have forgotten to output $form-renderHiddenFields(false); in your template? Please check that the ID of your object is there in your edit screen's HTML. Cheers, Daniel Sent from my iPhone4 On Sep 13, 2010, at 1:58 PM, corneliusparkin cornelius.par...@gmail.com wrote: Hi I have

[symfony-users] automated response

2010-09-13 Thread Saad Tazi | Twist Image
Merci de votre message. Je suis présentement absent du bureau. Je serai de retour le 25 septembre. L'accès à mes courriels pourrait être limité durant cette période. En cas d’urgence, vous pouvez rejoindre notre équipe technique en envoyant un courriel à l’adresse suivante:

Re: [symfony-users] The module and action names are not present in the internal URI?

2010-09-13 Thread Alan Bem
...and ommit later on. 2010/9/13 Alan Bem alan@gmail.com @default route specify module and action names as parameters, thats why they are present in that internal uri you paste default: url: /:module/:action/* but in the end you can hardcode them in routing.yml -- If you want

Re: [symfony-users] sfValidatorDoctrineUnique

2010-09-13 Thread Cornelius Parkin
Hi Daniel... Thank you so much!! The problem was that I unset the id field in the form. I did not know that it was supposed to be included in the form because it was present in the URI. I hope this also helps someone else whom faces this problem... Thanks again... Regards CAP On Mon, Sep 13,

[symfony-users] Re: Tabs in Auto-Generated Code

2010-09-13 Thread Massimiliano Arione
On 13 Set, 13:35, Felix E. Klee felix.k...@inka.de wrote: On Sun, Sep 12, 2010 at 2:20 PM, Davide Borsatto lloy...@gmail.com wrote: Which generated file are you referring to? It may be a Propel or Doctrine issue. The tabs are indeed in the model files, auto generated by Propel 1.4.2.

Re: [symfony-users] Re: Tabs in Auto-Generated Code

2010-09-13 Thread Felix E. Klee
Thanks! -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe

Re: [symfony-users] The module and action names are not present in the internal URI?

2010-09-13 Thread Felix E. Klee
Shouldn't the documentation then read as follows? the module and action names may be omitted in the internal URI, if hardcoded in routing.yml -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you

[symfony-users] Re: Are the design of Symfony2 and Doctrine2 in right direction?

2010-09-13 Thread Florian
On 12 sep, 16:23, Fangzx fangzhoux...@gmail.com wrote: I play Symfony2 and Doctrine2 for two weeks, and I came from Java(5years) and Python/Django(3years). My questions: 1. Doctrine2  is so like Java Hibernate and is too heavy, I don't like that, for example, why not use pulic properties

Re: [symfony-users] Re: Are the design of Symfony2 and Doctrine2 in right direction?

2010-09-13 Thread Donald Tyler
I'm interested in trying Doctrine 2, but the setters / getters thing that the OP mentions concerns me a little. In my own ORM, I use the __set and __get methods to have a consistent access method for properties on my entities. e.g. class Entity { public function __set ($property, $value) {

Re: [symfony-users] Re: Are the design of Symfony2 and Doctrine2 in right direction?

2010-09-13 Thread Alexandre Salomé
Have you read this : http://propel.posterous.com/propel2-will-be-an-activerecord-implementatio ? Doctrine2 ensure performances of DBAL and provides ORM tools. Propel2 would be an Active Record implementation over this. These solutions are in development, you cannot yet get a full-featured

[symfony-users] Re: Working with Symfony and Git (collaboration)

2010-09-13 Thread Grzegorz Śliwiński
It's not matter of git, but rather the matter of your development strategy. If your apps are supposed to work within one project, then one repo is what you need, if these apps are in fact three different projects, then second idea is right. You can always have different branches for each

Re: [symfony-users] Re: Are the design of Symfony2 and Doctrine2 in right direction?

2010-09-13 Thread Tim Nagel
Doctrine2 does provide this flexibility, the only snag is that there is a PHP limitation on public properties (When using Proxies for partial loads, a public property will misbehave). Any mapped properties must be protected or private.

[symfony-users] Re: Symfony2 Sandbox database collation

2010-09-13 Thread Aleš
Thanks for the reply, but this is the configuration for Symfony1. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group,

Re: [symfony-users] Are the design of Symfony2 and Doctrine2 in right direction?

2010-09-13 Thread Fabien Potencier
On 9/12/10 4:23 PM, Fangzx wrote: I play Symfony2 and Doctrine2 for two weeks, and I came from Java(5years) and Python/Django(3years). My questions: 1. Doctrine2 is so like Java Hibernate and is too heavy, I don't like that, for example, why not use pulic properties directly instead of setter

[symfony-users] [sf2] Doctrine Schema

2010-09-13 Thread Craige
Hey guys, I've been eagerly awaiting Symfony 2, but I see that the public site now says it's not expected until March. Unfortunate, but no big deal. I'd rather have the team do it right than do it fast. Anyway, I've was planning (and still am planning) to program my new project with Symfony 2.

[symfony-users] Re: sfWidgetFormChoice and setDefault

2010-09-13 Thread Svetoslav Shterev
Glancing through the code, the default option(what setDefault() does on a widget) doesn't seem to be used at all in the choice widgets. At any rate, you should be using the form's default fields, instead of the widget's. $this-setDefault('priority', max(...)); The widget's default value(if used

[symfony-users] Re: How to display/get the info-related to the main form on the embedded form?

2010-09-13 Thread Svetoslav Shterev
On Sep 10, 10:51 pm, Alejandro Gómez alejandro.go...@alejandrogomez.org wrote: I don't know why but embedRelation('AlumnoInterno') did not work. Maybe the Propel version? Symfony throws me Call to undefined method AlumnoForm::embedRelation. Are you using Propel? In the other hand, I used

Re: [symfony-users] [sf2] Doctrine Schema

2010-09-13 Thread Fabien Potencier
On 9/14/10 1:59 AM, Craige wrote: Hey guys, I've been eagerly awaiting Symfony 2, but I see that the public site now says it's not expected until March. Unfortunate, but no big deal. I'd rather have the team do it right than do it fast. Anyway, I've was planning (and still am planning) to