find_all() as $object) { // In TSM Primary Keys are in upper case if (is_null($id) OR $object->{$object->_primary_key} == strtoupper($id)) $this->_load_values($object->_object); // If we have found our item return if ($this->_loaded) return; } } /** * We need to call our own _load_values() to support find() and TSM::result() * * (Since _load_values is protected, we need to make it public here, * so that it can be called in TSM::result().) * * @see TSM::result * @see ORM::find */ public function _load_values(array $values) { return parent::_load_values($values); } } ?>