Pluf Framework

Pluf Framework Commit Details


Date:2009-10-07 07:52:18 (15 years 6 months ago)
Author:Loic d'Anterroches
Branch:develop, master
Commit:6f2a8e11ea6057fc49f6d17205f6e7487b944176
Parents: d56046b47e1727e8b9479c1854ec8963a7b50872
Message:Correctly unset the cache when updating a foreignkey.

Changes:

File differences

src/Pluf/Model.php
339339
340340
341341
342
343
342
343
344
345
346
347
344348
345349
346350
     */
    function __set($prop, $val)
    {
        if (!is_null($val) and isset($this->_cache['fk'][$prop])) $this->_data[$prop] = $val->id;
        else $this->_data[$prop] = $val;
        if (!is_null($val) and isset($this->_cache['fk'][$prop])) {
            $this->_data[$prop] = $val->id;
            unset($this->_cache['get_'.$prop]);
        } else {
            $this->_data[$prop] = $val;
        }
    }
    /**

Archive Download the corresponding diff file

Branches

Tags

Number of commits:
Page rendered in 0.09080s using 13 queries.