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

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!
Reply
#2

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




Theme © iAndrew 2016 - Forum software by © MyBB