[symfony-users] Re: Configuration by apache directive

2010-12-09 Thread Flukey
Ah, nice idea :-) On a side note, if you're going to set some settings via the apache directive, you might aswell put the .htaccess (and delete the .htaccess file) rewrite rules in the apache configuration too. You'll get a performance boost too (.htaccess isn't cached, it is read on every request

[symfony-users] Using multiple databases with doctrine

2010-12-09 Thread hectorh30
Hi there, I have this error [1] when attempting to define a model with a connection which is the first of two connections defined in my config/ databases.yml. The query goes to the second database. If I switch the connection field to the second db defined, it works nice. Also tried re-building al

[symfony-users] Jobeet Day 7 - feedback needed about pager refactoring

2010-12-09 Thread arnod'mental
Hi, I'm currently following the excellentissimo Jobeet tutorial. For Day 7, as an extra excercise, I wanted to refactor the pager template so I made a global partial that can be used anywhere else in my project. This partial accepts base params as an array to create the route and a pager object. I

[symfony-users] how to override Doctrine relation getter to use order by in one

2010-12-09 Thread birdmilk
Hi, Currently have a problem with basic Doctrine getter. Doctrine: 1.2 Symfony 1.4.8 Php 5.2.14 Assume the situation: I have two models: M1 and M2, the relation many to many; On view side i'm gettiing data in following style: *** foreach ($m1->M2[] as $m2) { //do smth with m2 } *** by default

Re: [symfony-users] Using multiple databases with doctrine

2010-12-09 Thread Loïc Vernet
http://trac.symfony-project.org/ticket/9092 Use 1.4.6 instead... 2010/12/8 hectorh30 > Hi there, > > I have this error [1] when attempting to define a model with a > connection which is the first of two connections defined in my config/ > databases.yml. The query goes to the second database. >

Re: [symfony-users] [Symfony2] How to preselect ChoiceField?

2010-12-09 Thread Bernhard Schussek
Hi Dennis, Can you show me the generated HTML code for the choice field? Do you use Twig or PHP templating? Also, can you show me the output of both $form['rack']->getDisplayedData() and $server->rack? Thanks, Bernhard -- Software Architect & Engineer Blog: http://webmozarts.com Twitter: http:/

[symfony-users] Symfony2 - Bug in documentation

2010-12-09 Thread k3nt1
Hello, I'm not sure it's the best place to report this, but anyway: At URL http://docs.symfony-reloaded.org/guides/security/users.html#advancedaccountinterface, there are 3 errors in the description of the functions: Instead of: isAccountNonExpired(): Returns true when the user’s account has expi

[symfony-users] Symfony 1.4 + propel15 ondemand hydration

2010-12-09 Thread Thor
Hi all, i have some code that looks as follows: $list = ObjQuery::create()->setFormatter(ModelCriteria::ON_DEMAND)- >find(); That returns me a certain number of objs in a propelcollection. If to this code i add the following (for example) foreach ( $list as $o) { echo $o->getId() ." - ". $o->ge

Re: [symfony-users] [Symfony2] How to preselect ChoiceField?

2010-12-09 Thread Dennis Jacobfeuerborn
The generated HTML looks like this: Rack 1 Rack 2 (top half) The code that creates this looks like this: $racks = array( "Rack 1" => "Rack 1", "Rack 2 (top half)" => "Rack 2 (top half)" ); $form->add(new ChoiceField('rack',array("choices" => $racks))); (I've written a repository function that

Re: [symfony-users] [Symfony2] How to preselect ChoiceField?

2010-12-09 Thread Dennis Jacobfeuerborn
Oh, and I forgot to mention that I use twig for templating, sorry. -- 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,

[symfony-users] Re: Configuration by apache directive

2010-12-09 Thread Marijn
Hi flukey, I usually do so, just not in this example :-) Thanks for reminding me about a more than valid point though :-) Kindest regards, Marijn On Dec 9, 1:01 am, Flukey wrote: > Ah, nice idea :-) > > On a side note, if you're going to set some settings via the apache > directive, you might

Re: [symfony-users] Using multiple databases with doctrine

2010-12-09 Thread Thomas Rabaix
Loic, Can you create a small project where this issue can be reproduce ? Thomas On 9 déc. 2010, at 13:41, Loïc Vernet wrote: > http://trac.symfony-project.org/ticket/9092 > > Use 1.4.6 instead... > > > 2010/12/8 hectorh30 > >> Hi there, >> >> I have this error [1] when attempting to defin

[symfony-users] strangeness with pdostatement....

2010-12-09 Thread Slavka
The following from xdebug trace where l__mi_prinx is suppose to be a bigint but instead .0 is appeneded to the end of the number and changes the value type from integer to decimal anyone know why? -> PDOStatement->fetch(2) C:\sites\local.symfony.swag\lib\vendor \symfony\lib\plugins\sfDo

[symfony-users] strangeness with pdostatement....

2010-12-09 Thread Slavka
The following from xdebug trace where l__mi_prinx is suppose to be a bigint but instead .0 is appeneded to the end of the number and changes the value type from integer to decimal anyone know why? -> PDOStatement->fetch(2) C:\sites\local.symfony.swag\lib\vendor \symfony\lib\plugins\sfDo

[symfony-users] Godaddy shared host installation

2010-12-09 Thread Adrián Estrada - edsadr
Hello everyone I have a problem deploying a project with frontend and backend applications a to a godaddy shared account... so far googling and reading I got the frontend working using this article: http://xiehang.com/blog/2009/07/03/symfony-and-godaddy/ but not the backend, the / works but not

Re: [symfony-users] Godaddy shared host installation

2010-12-09 Thread Gareth McCumskey
Googling "symfony shared host installation" takes me here: http://www.symfony-project.org/book/1_0/03-Running-Symfony#chapter_03_sub_configuring_a_shared_host_server 2010/12/10 Adrián Estrada - edsadr > Hello everyone > > I have a problem deploying a project with frontend and backend > applicati

Re: [symfony-users] Godaddy shared host installation

2010-12-09 Thread Gareth McCumskey
Oh and try http://www.enmedio.com.co/backend.php/module/action We found the same problem on our backend so now we just call a module and action directly 2010/12/10 Adrián Estrada - edsadr > Hello everyone > > I have a problem deploying a project with frontend and backend > applications a to a g