diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-24 05:55:29 +0000 | 
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-24 05:55:29 +0000 | 
| commit | d7288d33e63a9b03408180002dde39d05134689d (patch) | |
| tree | 6a03ba08e46609e7338545f0e37c452e6d4b22db /core/models/item.php | |
| parent | 39f00707ac64558c882fb3df30adb666049b6295 (diff) | |
Remove the has_many_and_belongs_to_many relations from the item model
Diffstat (limited to 'core/models/item.php')
| -rw-r--r-- | core/models/item.php | 7 | 
1 files changed, 0 insertions, 7 deletions
| diff --git a/core/models/item.php b/core/models/item.php index ba759c2b..4481a3a9 100644 --- a/core/models/item.php +++ b/core/models/item.php @@ -21,13 +21,6 @@ class Item_Model extends ORM_MPTT {    protected $children = 'items';    protected $has_one = array("owner" => "user"); -  function __construct($id=null) { -    parent::__construct($id); -    if (!in_array("tags", $this->has_and_belongs_to_many) && module::is_installed("tag")) { -      $this->has_and_belongs_to_many[] = "tags"; -    } -  } -    /**     * Is this item an album?     * @return true if it's an album | 
