[symfony-users] [solved] Re: Propel route: new object with foreign key (sf 1.3.7)

2010-10-06 Thread Christian
many thanks! On 5 Okt., 17:31, Daniel Lohse annismcken...@googlemail.com wrote: Nope, that won't work because the named route doesn't take or expect a real parameter and you're providing it your offer_id. Try this: link_to(add refurbishment, '@offer_refurbishment_new', array('query_string'

[symfony-users] Need ideas: weird doctrine problem

2010-10-06 Thread Georg
Hi, I have a weird doctrine problem, and no clue, where to look to find the cause :-( In short, a doctrine get method returns different object types in test and in dev environment. In detail: I have two schema files (the connection sites and data go to different databases) sites.schema.yml:

Re: [symfony-users] Need ideas: weird doctrine problem

2010-10-06 Thread Georg
Sorry, forgot the relations in data.schema.yml in my previous post: data.schema.yml _ connection: data LocalBinaryReading: tableName: binary_reading columns: name: {type: string, length: 255, notnull: true, unique: true} Station: columns: d1: { type: integer,

[symfony-users] Question about I18n tables

2010-10-06 Thread Javier Garci
Hi, i have this schema and fixtures: | sedi: _attributes:{ isI18N: true, i18nTable: sediI18n} id: ~ sediI18n: id:{ type: integer, required: true, primaryKey: true, foreignTable: sedi, foreignReference: id} culture: {

[symfony-users] Instalação

2010-10-06 Thread Gerda Graciela Rodrigues
Pessoal, bom dia! Tenho um ambiente configurado em minha maquina mas não estou conseguindo configurar o ambiente em outra. Tentei usando o Xamp e o BitNami. Quando coloco o endereço: 127.0.0.2 ou o alias ele aparece a tela inicial (do Xamp e/ou do BitNami). A aplicação esta em

[symfony-users] Re: London Symfony Lightning Talks - November 9th

2010-10-06 Thread benlancaster
On Oct 5, 4:04 pm, cleve cleve...@gmail.com wrote: A couple of us are organising a symfony meetup in London and thought it would be awesome to get some people to do some lightning talks on symfony usage. We're especially keen on anyone's experience with symfony2 (but anything symfony'ish

[symfony-users] New line in text in propel schema, how?

2010-10-06 Thread Javier Garci
Hi, I have this: SediI18n: XX: { id: sede_foo_1, culture: it, paese_indirizzo: it, ufficio: Ufficio di XXX 1, indirizzo: Foo Bar FooBar } Now, when i prints this register the field indirizzo: Foo Bar FooBar Everything is in one line. Any way to write the value of indirizzo to

Re: [symfony-users] Re: London Symfony Lightning Talks - November 9th

2010-10-06 Thread Daniel Lohse
On 06.10.2010, at 15:20, benlancaster wrote: On Oct 5, 4:04 pm, cleve cleve...@gmail.com wrote: A couple of us are organising a symfony meetup in London and thought it would be awesome to get some people to do some lightning talks on symfony usage. We're especially keen on anyone's

[symfony-users] Re: Having a web layer for the model

2010-10-06 Thread Richtermeister
Hey Sebastien, your intuition is right, those things don't belong in the model, as they differ from application to application. There are easy ways to have the best of both worlds though. First, links to, say, a product I find pretty simple: link_to($product, product_show, $product); However, if

[symfony-users] Problems trying to go the previous element of a group of elements retrieved using a propel criteria.

2010-10-06 Thread Javier Garci
Hi, i have retrieved a group of elements using a propel criteria. Now are at $Sedi18ns When i use this: $SediI18ns-prev() I get: ( ! ) Fatal error: Call to undefined method sfOutputEscaperArrayDecorator::prev() in

[symfony-users] Any smart way to operate production URL while im working in dev enviroment?

2010-10-06 Thread Javier Garci
Hi, I have some code that retrieves the production URL and check some staff. Im prefer to work in the dev invoroment so I have to write in my code something like this ?php if(sfConfig::get('sf_environment') == 'dev'): ? ?php $url = http://www.mysite.com/foobar; ? ?php else: ? ?php $url =

[symfony-users] Call to undefined method Sedii18nPeer::doSelectWithI18n()

2010-10-06 Thread Javier Garci
Hi, i have followed the steps to create a i18n table: http://www.symfony-project.org/jobeet/1_4/Propel/en/19#chapter_19_sub_propel_objects But when i try execute this $categories = JobeetCategoryPeer::doSelectWithI18n($c, $culture); It says: ( ! ) Fatal error: Call to undefined method

[symfony-users] Default Symfony2 sandbox HelloControllerTest fails

2010-10-06 Thread mikael.randy
Hello everybody. I'm actually testing Symfony2 by follow the default symfony-reloaded site documentation. From start to test chapter, all work well. But, today, when i have launched default test suite (phpunit -c hello/) and i obtained an error : $ phpunit -c hello/ PHPUnit 3.5.0 by Sebastian

[symfony-users] Nested Form in Doctrine - symfony 1.4

2010-10-06 Thread hribo
Hi all, I would like to create the same exact thing as is descibed at blog: http://www.symfony-project.org/blog/2008/11/10/call-the-expert-nested-forms-a-real-implementation but this is done only for propel is there anybody who knows how to do nested forms in doctrine for symfony 1.4? or do you

Re: [symfony-users] Nested Form in Doctrine - symfony 1.4

2010-10-06 Thread Gustavo Adrian
Maybe this could help: http://www.symfony-project.org/more-with-symfony/1_4/en/06-Advanced-Forms http://www.symfony-project.org/more-with-symfony/1_4/en/06-Advanced-FormsBest regards. On Wed, Oct 6, 2010 at 5:26 PM, hribo hribo...@gmail.com wrote: Hi all, I would like to create the same

Re: [symfony-users] Nested Form in Doctrine - symfony 1.4

2010-10-06 Thread Stéphane
Maybe this too : http://www.symfony-project.org/plugins/ahDoctrineEasyEmbeddedRelationsPlugin Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Wed, Oct 6, 2010 at 10:37 PM, Gustavo Adrian

[symfony-users] different form schema between applications

2010-10-06 Thread Manu SW
Hi, Sorry if this is a n00b question ... I would like to use the same form in both frontend and backend application but I would need to change some widget types, depending on the application I am using the form. For example I have the form definition: class VideoForm extends BaseVideoForm

Re: [symfony-users] different form schema between applications

2010-10-06 Thread Andrei Dziahel
Hi. So why not to create 2 separate form classes which extend BaseVideoForm (or VideoForm — depends of your needs and ), fill their configure()method with application-specific code and use both in appropriate applications? On Thu, Oct 7, 2010 at 01:55, Manu SW mro...@gmail.com wrote: Hi,

Re: [symfony-users] Re: Having a web layer for the model

2010-10-06 Thread Sebastien Armand [Pink]
It does indeed! Thanks On Thu, Oct 7, 2010 at 12:37 AM, Richtermeister nex...@gmail.com wrote: Hey Sebastien, your intuition is right, those things don't belong in the model, as they differ from application to application. There are easy ways to have the best of both worlds though.

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

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