Commit 03efbc4c by Alexander Makarov

Added getDb() to ActiveRecordInterface in order for BaseActiveRecord to have stricter contract

parent cb9609d7
......@@ -391,4 +391,10 @@ interface ActiveRecordInterface
* If true, the model containing the foreign key will be deleted.
*/
public function unlink($name, $model, $delete = false);
/**
* Returns the connection used by this AR class.
* @return mixed the database connection used by this AR class.
*/
public static function getDb();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment