diff --git a/src/Pluf/Model.php b/src/Pluf/Model.php index 9802ece..30c5af2 100644 --- a/src/Pluf/Model.php +++ b/src/Pluf/Model.php @@ -282,6 +282,14 @@ class Pluf_Model } /** + * Get a database connection. + */ + function getDbConnection() + { + return Pluf::db($this); + } + + /** * Get the table of the model. * * Avoid doing the concatenation of the prefix and the table