[Solar-svn] Revision 2796
pmjones at solarphp.com
pmjones at solarphp.com
Fri Sep 28 20:50:22 CDT 2007
branch: Solar_Example_Model_*: [BRK] Updated to match new Model/Record/Collection classes (forthcoming).
Modified: branches/orm/Solar/Example/Model/Areas.php
===================================================================
--- branches/orm/Solar/Example/Model/Areas.php 2007-09-29 01:48:59 UTC (rev 2795)
+++ branches/orm/Solar/Example/Model/Areas.php 2007-09-29 01:50:22 UTC (rev 2796)
@@ -12,12 +12,12 @@
$this->_table_cols = Solar::run($dir . 'table_cols.php');
$this->_hasMany('nodes', array(
- 'foreign_model' => 'nodes',
+ 'foreign_class' => 'nodes',
'foreign_key' => 'area_id',
));
$this->_belongsTo('user', array(
- 'foreign_model' => 'users',
+ 'foreign_class' => 'users',
'foreign_key' => 'user_id',
));
Modified: branches/orm/Solar/Example/Model/Metas.php
===================================================================
--- branches/orm/Solar/Example/Model/Metas.php 2007-09-29 01:48:59 UTC (rev 2795)
+++ branches/orm/Solar/Example/Model/Metas.php 2007-09-29 01:50:22 UTC (rev 2796)
@@ -12,7 +12,7 @@
$this->_table_cols = Solar::run($dir . 'table_cols.php');
$this->_belongsTo('node', array(
- 'foreign_model' => 'nodes',
+ 'foreign_class' => 'nodes',
'foreign_key' => 'node_id',
));
Modified: branches/orm/Solar/Example/Model/Nodes.php
===================================================================
--- branches/orm/Solar/Example/Model/Nodes.php 2007-09-29 01:48:59 UTC (rev 2795)
+++ branches/orm/Solar/Example/Model/Nodes.php 2007-09-29 01:50:22 UTC (rev 2796)
@@ -12,27 +12,27 @@
$this->_table_cols = Solar::run($dir . 'table_cols.php');
$this->_belongsTo('area', array(
- 'foreign_model' => 'areas',
+ 'foreign_class' => 'areas',
'foreign_key' => 'area_id',
));
$this->_belongsTo('user', array(
- 'foreign_model' => 'users',
+ 'foreign_class' => 'users',
'foreign_key' => 'user_id',
));
$this->_hasOne('meta', array(
- 'foreign_model' => 'metas',
+ 'foreign_class' => 'metas',
'foreign_key' => 'node_id',
));
$this->_hasMany('taggings', array(
- 'foreign_model' => 'taggings',
+ 'foreign_class' => 'taggings',
'foreign_key' => 'node_id',
));
$this->_hasMany('tags', array(
- 'foreign_model' => 'tags',
+ 'foreign_class' => 'tags',
'through' => 'taggings',
'through_key' => 'tag_id',
));
Modified: branches/orm/Solar/Example/Model/Taggings.php
===================================================================
--- branches/orm/Solar/Example/Model/Taggings.php 2007-09-29 01:48:59 UTC (rev 2795)
+++ branches/orm/Solar/Example/Model/Taggings.php 2007-09-29 01:50:22 UTC (rev 2796)
@@ -12,11 +12,11 @@
$this->_table_cols = Solar::run($dir . 'table_cols.php');
$this->_belongsTo('node', array(
- 'foreign_model' => 'nodes',
+ 'foreign_class' => 'nodes',
));
$this->_belongsTo('tag', array(
- 'foreign_model' => 'tags',
+ 'foreign_class' => 'tags',
));
$this->_index = array(
More information about the Solar-svn
mailing list