I'm trying to use the table_method option of my generator.yml file

( symfony version 1.2.7 (/usr/share/php/symfony)  and Doctrine 1.2 )

Unknown method Doctrine_Table::retrieveBackendHotelDescriptionList
I trace the error e put the var_dump on execption is called.


2606         } catch (Doctrine_Record_UnknownPropertyException $e) {}
2607
2608         var_dump( get_class($this), $method );
2609         throw new Doctrine_Table_Exception(sprintf('Unknown method
%s::%s', get_class($this), $method));
2610     }
"lib/vendor/doctrine/Doctrine/Table.php" 2611L, 88104C gravado(s)


the result is

string 'Doctrine_Table' *(length=14)*
string 'retrieveBackendHotelDescriptionList' *(length=35)*



It mean that the doctrine is finding my method on Doctrine_Table class
and not in HotelDescription class..


my generator file is:

generator:
  class: sfDoctrineGenerator
  param:
    model_class:           HotelDescription

    theme:                 admin
    non_verbose_templates: true
    with_show:             false
    singular:              ~
    plural:                ~
    route_prefix:          hotel_description_hotelDescription

    with_doctrine_route:     1

    config:
      actions: ~
      fields:
        DescriptionType: {label: Tipo de Descrição}
        _description: {label: Descrição}
        description_type_id: {label: Tipo de Descrição}

      list:
        title: Lista de Descrição de Hoteis
        actions: {}
        max_per_page: 10
        batch_actions: {}
        object_actions:
          _edit: ~
        display: [Hotel, DescriptionType, description]

        table_method: retrieveBackendHotelDescriptionList
      filter:






Any idea about it???






+55 41 85020985

--~--~---------~--~----~------------~-------~--~----~
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 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to