|
Revision 2878, 490 bytes
(checked in by pmjones, 10 months ago)
|
cleaning up "hold" directory with expanded names
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
class Solar_Model_Nodes_Blogs extends Solar_Model_Nodes { |
|---|
| 3 |
protected function _setup() |
|---|
| 4 |
{ |
|---|
| 5 |
parent::_setup(); |
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
* Relationships. |
|---|
| 9 |
*/ |
|---|
| 10 |
|
|---|
| 11 |
$this->_belongsTo('area', array( |
|---|
| 12 |
'foreign_class' => 'areas', |
|---|
| 13 |
'foreign_key' => 'area_id', |
|---|
| 14 |
)); |
|---|
| 15 |
|
|---|
| 16 |
$this->_hasMany('comments', array( |
|---|
| 17 |
'foreign_class' => 'comments', |
|---|
| 18 |
'foreign_key' => 'parent_id', |
|---|
| 19 |
)); |
|---|
| 20 |
} |
|---|
| 21 |
} |
|---|
| 22 |
|
|---|