Pluf Framework

Sign in or create your account | Project List | Help

Pluf Framework Commit Details

Date:2009-04-25 11:17:59 (10 months 21 days ago)
Author:Loïc d'Anterroches
Commit:7809b1ae1138252f1cad5c0d9a3b8a9705a6ad6d
Message:Fixed to correctly cache the DB connection at the model level.

Files: src/Pluf/Model.php (2 diffs)

Change Details

src/Pluf/Model.php
278278     */
279279    function _getConnection()
280280    {
281        if ($this->_con !== null) {
282            return $this->_con;
283        }
281284        $this->_con = &Pluf::db($this);
285        return $this->_con;
282286    }
283287
284288    /**
...... 
286290     */
287291    function getDbConnection()
288292    {
289        return Pluf::db($this);
293        return $this->_getConnection();
290294    }
291295
292296    /**

Archive Download the corresponding diff file

Branches:
master