|  | @@ 225-245 (lines=21) @@ | 
                                                            
                                    | 222 |  |         return isset($this->dbRow[$var]); | 
                                                            
                                    | 223 |  |     }*/ | 
                                                            
                                    | 224 |  |  | 
                                                            
                                    | 225 |  |     public function set($var, $value) | 
                                                            
                                    | 226 |  |     { | 
                                                            
                                    | 227 |  |         $this->_dbLoadIfNotLoaded(); | 
                                                            
                                    | 228 |  |  | 
                                                            
                                    | 229 |  |         /* | 
                                                            
                                    | 230 |  |         // Ok, let's start by checking the column type | 
                                                            
                                    | 231 |  |         $type = $this->db_connection->getColumnType($this->dbTableName, $var); | 
                                                            
                                    | 232 |  |  | 
                                                            
                                    | 233 |  |         // Throws an exception if the type is not ok. | 
                                                            
                                    | 234 |  |         if (!$this->db_connection->checkType($value, $type)) { | 
                                                            
                                    | 235 |  |             throw new TDBMException("Error! Invalid value passed for attribute '$var' of table '$this->dbTableName'. Passed '$value', but expecting '$type'"); | 
                                                            
                                    | 236 |  |         } | 
                                                            
                                    | 237 |  |         */ | 
                                                            
                                    | 238 |  |  | 
                                                            
                                    | 239 |  |         /*if ($var == $this->getPrimaryKey() && isset($this->dbRow[$var])) | 
                                                            
                                    | 240 |  |             throw new TDBMException("Error! Changing primary key value is forbidden.");*/ | 
                                                            
                                    | 241 |  |         $this->dbRow[$var] = $value; | 
                                                            
                                    | 242 |  |         if ($this->tdbmService !== null && $this->status === TDBMObjectStateEnum::STATE_LOADED) { | 
                                                            
                                    | 243 |  |             $this->status = TDBMObjectStateEnum::STATE_DIRTY; | 
                                                            
                                    | 244 |  |             $this->tdbmService->_addToToSaveObjectList($this); | 
                                                            
                                    | 245 |  |         } | 
                                                            
                                    | 246 |  |     } | 
                                                            
                                    | 247 |  |  | 
                                                            
                                    | 248 |  |     /** | 
                                                                                
                                |  | @@ 252-259 (lines=8) @@ | 
                                                            
                                    | 249 |  |      * @param string             $foreignKeyName | 
                                                            
                                    | 250 |  |      * @param AbstractTDBMObject $bean | 
                                                            
                                    | 251 |  |      */ | 
                                                            
                                    | 252 |  |     public function setRef($foreignKeyName, AbstractTDBMObject $bean = null) | 
                                                            
                                    | 253 |  |     { | 
                                                            
                                    | 254 |  |         $this->references[$foreignKeyName] = $bean; | 
                                                            
                                    | 255 |  |  | 
                                                            
                                    | 256 |  |         if ($this->tdbmService !== null && $this->status === TDBMObjectStateEnum::STATE_LOADED) { | 
                                                            
                                    | 257 |  |             $this->status = TDBMObjectStateEnum::STATE_DIRTY; | 
                                                            
                                    | 258 |  |             $this->tdbmService->_addToToSaveObjectList($this); | 
                                                            
                                    | 259 |  |         } | 
                                                            
                                    | 260 |  |     } | 
                                                            
                                    | 261 |  |  | 
                                                            
                                    | 262 |  |     /** |