Welcome Guest, Not a member yet? Register   Sign In
Does New Model Object creates new MySQL connection ?

Hello everybody,
I would like to ask a question. I have a Model class
PHP Code:
class UserModel extends Model 

What happened if I create an object of User Model
PHP Code:
$dbuser new¬†UserModel(); 

Does it create one database connection per one object?

Thank you in advance!

only one connection, it should be persistent connection. instance is shared

Theme © iAndrew 2016 - Forum software by © MyBB