2

I have groupTable(group_id,group_name,group_date,group_parent_id)
in face each group have many group child. I create groupModel and I want to begin coding is this right code to handle?

protected $_name = 'group';   
protected $_dependentTables = array('Model_group');  
protected $_referenceMap = array('Model_group' =>   
    array('columns' => array('group_parent_id') ,   
    'refTableClass' => 'Model_group' ,   
    'refColumns' => array('group_id') ,   
    'onDelete' => self::CASCADE ,   
    'onUpdate' => self::RESTRICT)  
);
Charles
  • 50,943
  • 13
  • 104
  • 142
3ehrang
  • 619
  • 1
  • 7
  • 22
  • I have also asked similar [question](http://stackoverflow.com/questions/7008519/problem-relating-a-zend-db-table-class-to-itself), but no answers – mrN Aug 10 '11 at 10:20

1 Answers1

-1

One to many implies more than one table

Mark
  • 1