You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe it's currently not possible to execute PDO's query via NotORM. As a workaround, I have to store an instance of PDO before passing it over to NotORM during its initialization.
Or I have to define a class that extends NotORM and provides access to $this->connection.
Query() comes handy when you need to switch databases, optimize tables, run a batch of SQL commands or generally speaking, do things that NotORM can't do.
Thanks
Petr
The text was updated successfully, but these errors were encountered:
It would violate the Law of Demeter. Also, there's no easy way to access it as both $notORM->connection and $notORM->connection() are used for accessing table connection.
I believe it's currently not possible to execute PDO's query via NotORM. As a workaround, I have to store an instance of PDO before passing it over to NotORM during its initialization.
Or I have to define a class that extends NotORM and provides access to $this->connection.
Query() comes handy when you need to switch databases, optimize tables, run a batch of SQL commands or generally speaking, do things that NotORM can't do.
Thanks
Petr
The text was updated successfully, but these errors were encountered: