Everything works now, thanks and sorry I should have read the documentation.

I cant filter now by the inv_no field, being the pk. I know the pk are
ignored in the forms, why?

Thanks again.



On 4/20/09, Jonathan Wage <[email protected]> wrote:
> No I meant this:
>
> invoices:
>  class:                    sfDoctrineRouteCollection
>  options:
>    model:                  ABInvoice
>    module:                 invoices
>    prefix_path:            invoices
>    with_wildcard_routes:   true
>    column:                  inv_no
>
> On Mon, Apr 20, 2009 at 8:59 AM, Gandalf <[email protected]> wrote:
>
>>
>> no dice
>>
>> invoices:
>>  class:                    sfDoctrineRouteCollection
>>  options:
>>    model:                  ABInvoice
>>    module:                 invoices
>>    prefix_path:            invoices
>>    with_wildcard_routes:   true
>>     pk_id:                  inv_no
>>
>> 500 | Internal Server Error | InvalidArgumentException
>> The "/invoices/:id/edit.:sf_format" route has some missing mandatory
>> parameters (:id).
>> stack trace
>> at ()
>> in SF_SYMFONY_LIB_DIR\routing\sfRoute.class.php line 216 ...
>>    // all params must be given
>>
>>    if ($diff = array_diff_key($this->variables, $tparams))
>>
>>    {
>>
>>      throw new InvalidArgumentException(sprintf('The "%s" route has
>> some missing mandatory parameters (%s).', $this->pattern, implode(',
>> ', $diff)));
>>
>>    }
>>
>>
>>    if ($this->options['generate_shortest_url'] || $this->customToken)
>> at sfRoute->generate(array(), '', '')
>> in SF_SYMFONY_LIB_DIR\routing\sfRequestRoute.class.php line 98 ...
>> at sfRequestRoute->generate(array(), '')
>> in SF_SYMFONY_LIB_DIR\routing\sfObjectRoute.class.php line 81 ...
>> at
>> sfObjectRoute->generate(array(object('sfOutputEscaperIteratorDecorator')),
>> array('path_info' => '/invoices', 'prefix' => '/backend_dev.php',
>> 'method' => 'GET', null, 'host' => 'ocean.localhost', 'is_secure' =>
>> '', 'request_uri' =>
>> 'http://ocean.localhost/backend_dev.php/invoices'<http://ocean.localhost/backend_dev.php/invoices%27>),
>> '')
>> in SF_SYMFONY_LIB_DIR\routing\sfPatternRouting.class.php line 325 ...
>> at sfPatternRouting->generate('invoices_edit',
>> array(object('sfOutputEscaperIteratorDecorator')), '')
>> in SF_SYMFONY_LIB_DIR\controller\sfWebController.class.php line 74 ...
>> at sfWebController->genUrl(array('sf_route' => 'invoices_edit',
>> object('sfOutputEscaperIteratorDecorator')), '')
>> in SF_SYMFONY_LIB_DIR\helper\UrlHelper.php line 88 ...
>> at url_for1(array('sf_route' => 'invoices_edit',
>> object('sfOutputEscaperIteratorDecorator')), '')
>> in n/a line n/a ...
>> at call_user_func_array('url_for1', array(array('sf_route' =>
>> 'invoices_edit', object('sfOutputEscaperIteratorDecorator')), ''))
>> in SF_SYMFONY_LIB_DIR\helper\UrlHelper.php line 115 ...
>> at url_for(array('sf_route' => 'invoices_edit',
>> object('sfOutputEscaperIteratorDecorator')), '')
>> in SF_SYMFONY_LIB_DIR\helper\UrlHelper.php line 45 ...
>> at link_to1('2041', array('sf_route' => 'invoices_edit',
>> object('sfOutputEscaperIteratorDecorator')), array())
>> in SF_SYMFONY_LIB_DIR\helper\UrlHelper.php line 24 ...
>> at link_to2('2041', 'invoices_edit',
>> object('sfOutputEscaperIteratorDecorator'))
>> in n/a line n/a ...
>> at call_user_func_array('link_to2', array('2041', 'invoices_edit',
>> object('sfOutputEscaperIteratorDecorator')))
>> in SF_SYMFONY_LIB_DIR\helper\UrlHelper.php line 176 ...
>> at link_to('2041', 'invoices_edit',
>> object('sfOutputEscaperIteratorDecorator'))
>> in
>> SF_ROOT_DIR\cache\backend\dev\modules\autoInvoices\templates\_list_td_tabular.php
>> line 2 ...
>> at
>> require('E:\w\gocean\cache\backend\dev\modules\autoInvoices\templates\_list_td_tabular.php')
>> in SF_SYMFONY_LIB_DIR\view\sfPHPView.class.php line 77 ...
>> at
>> sfPHPView->renderFile('E:\w\gocean\cache\backend\dev\modules/autoInvoices/templates/_list_td_tabular.php')
>> in SF_SYMFONY_LIB_DIR\view\sfPartialView.class.php line 86 ...
>> at sfPartialView->render()
>> in SF_SYMFONY_LIB_DIR\helper\PartialHelper.php line 218 ...
>> at get_partial('invoices/list_td_tabular',
>> array(object('sfOutputEscaperIteratorDecorator')))
>> in SF_SYMFONY_LIB_DIR\helper\PartialHelper.php line 180 ...
>> at include_partial('invoices/list_td_tabular',
>> array(object('sfOutputEscaperIteratorDecorator')))
>> in SF_ROOT_DIR\cache\backend\dev\modules\autoInvoices\templates\_list.php
>> line 31 ...
>> at
>> require('E:\w\gocean\cache\backend\dev\modules\autoInvoices\templates\_list.php')
>> in SF_SYMFONY_LIB_DIR\view\sfPHPView.class.php line 77 ...
>> at
>> sfPHPView->renderFile('E:\w\gocean\cache\backend\dev\modules/autoInvoices/templates/_list.php')
>> in SF_SYMFONY_LIB_DIR\view\sfPartialView.class.php line 86 ...
>> at sfPartialView->render()
>> in SF_SYMFONY_LIB_DIR\helper\PartialHelper.php line 218 ...
>> at get_partial('invoices/list',
>> array(object('sfOutputEscaperObjectDecorator'),
>> object('sfOutputEscaperArrayDecorator'),
>> object('invoicesGeneratorHelper')))
>> in SF_SYMFONY_LIB_DIR\helper\PartialHelper.php line 180 ...
>> at include_partial('invoices/list',
>> array(object('sfOutputEscaperObjectDecorator'),
>> object('sfOutputEscaperArrayDecorator'),
>> object('invoicesGeneratorHelper')))
>> in
>> SF_ROOT_DIR\cache\backend\dev\modules\autoInvoices\templates\indexSuccess.php
>> line 19 ...
>> at
>> require('E:\w\gocean\cache\backend\dev\modules\autoInvoices\templates\indexSuccess.php')
>> in SF_SYMFONY_LIB_DIR\view\sfPHPView.class.php line 77 ...
>> at
>> sfPHPView->renderFile('E:\w\gocean\cache\backend\dev\modules/autoInvoices/templates/indexSuccess.php')
>> in SF_SYMFONY_LIB_DIR\view\sfPHPView.class.php line 174 ...
>> at sfPHPView->render()
>> in SF_SYMFONY_LIB_DIR\filter\sfExecutionFilter.class.php line 153 ...
>> at sfExecutionFilter->executeView('invoices', 'index', 'Success',
>> array(object('invoicesGeneratorConfiguration'),
>> object('invoicesGeneratorHelper'), object('ABInvoiceFormFilter'),
>> object('sfDoctrinePager'), array(null, null)))
>> in SF_SYMFONY_LIB_DIR\filter\sfExecutionFilter.class.php line 114 ...
>> at sfExecutionFilter->handleView(object('sfFilterChain'),
>> object('invoicesActions'), 'Success')
>> in SF_SYMFONY_LIB_DIR\filter\sfExecutionFilter.class.php line 47 ...
>> at sfExecutionFilter->execute(object('sfFilterChain'))
>> in SF_SYMFONY_LIB_DIR\filter\sfFilterChain.class.php line 53 ...
>> at sfFilterChain->execute()
>> in SF_SYMFONY_LIB_DIR\filter\sfCommonFilter.class.php line 29 ...
>> at sfCommonFilter->execute(object('sfFilterChain'))
>> in SF_SYMFONY_LIB_DIR\filter\sfFilterChain.class.php line 53 ...
>> at sfFilterChain->execute()
>> in SF_SYMFONY_LIB_DIR\filter\sfBasicSecurityFilter.class.php line 62 ...
>> at sfBasicSecurityFilter->execute(object('sfFilterChain'))
>> in SF_SYMFONY_LIB_DIR\filter\sfFilterChain.class.php line 53 ...
>> at sfFilterChain->execute()
>> in SF_SYMFONY_LIB_DIR\filter\sfRenderingFilter.class.php line 33 ...
>> at sfRenderingFilter->execute(object('sfFilterChain'))
>> in SF_SYMFONY_LIB_DIR\filter\sfFilterChain.class.php line 53 ...
>> at sfFilterChain->execute()
>> in SF_SYMFONY_LIB_DIR\controller\sfController.class.php line 245 ...
>> at sfController->forward('invoices', 'index')
>> in SF_SYMFONY_LIB_DIR\controller\sfFrontWebController.class.php line 48
>> ...
>> at sfFrontWebController->dispatch()
>> in SF_SYMFONY_LIB_DIR\util\sfContext.class.php line 159 ...
>> at sfContext->dispatch()
>> in SF_ROOT_DIR\web\backend_dev.php line 13 ...
>>
>> On 4/20/09, Jonathan Wage <[email protected]> wrote:
>> > I believe it defaults to id, try specifying column: pk_id under options
>> >
>> > - Jon
>> >
>> > On Mon, Apr 20, 2009 at 8:40 AM, Gandalf <[email protected]> wrote:
>> >
>> >>
>> >> my route does not mention the id:
>> >>
>> >> invoices:
>> >>  class:                    sfDoctrineRouteCollection
>> >>  options:
>> >>    model:                  ABInvoice
>> >>    module:                 invoices
>> >>    prefix_path:            invoices
>> >>    with_wildcard_routes:   true
>> >>
>> >>
>> >>
>> >> On 4/20/09, Jonathan Wage <[email protected]> wrote:
>> >> > I think you need to then change your route and the generator.yml if
>> you
>> >> want
>> >> > to use a column other than the id.
>> >> >
>> >> > - Jon
>> >> >
>> >> > On Mon, Apr 20, 2009 at 4:02 AM, Gandalf <[email protected]> wrote:
>> >> >
>> >> >>
>> >> >> Hello,
>> >> >>
>> >> >> Somehow the generator wired the model primary key to ID, if I change
>> >> >> the primary key, al the genrated code breaks, from the routes to the
>> >> >> lists....
>> >> >>
>> >> >> Any clue?
>> >> >>
>> >> >> Thanks
>> >> >>
>> >> >> P
>> >> >>
>> >> >> >
>> >> >>
>> >> >
>> >> >
>> >> > --
>> >> > Jonathan H. Wage
>> >> > Open Source Software Developer & Evangelist
>> >> > http://www.jwage.com
>> >> > http://www.doctrine-project.org
>> >> > http://www.symfony-project.org
>> >> >
>> >> > >
>> >> >
>> >>
>> >> >
>> >>
>> >
>> >
>> > --
>> > Jonathan H. Wage
>> > Open Source Software Developer & Evangelist
>> > http://www.jwage.com
>> > http://www.doctrine-project.org
>> > http://www.symfony-project.org
>> >
>> > >
>> >
>>
>> >
>>
>
>
> --
> Jonathan H. Wage
> Open Source Software Developer & Evangelist
> http://www.jwage.com
> http://www.doctrine-project.org
> http://www.symfony-project.org
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to