src/mako/database/midgard/ORM.php
public function getConnection(): Connection
	{
		if(empty(static::$connectionManager))
		{
			static::$connectionManager = Application::instance()->getContainer()->get('database');
		}

		return static::$connectionManager->connection($this->connectionName);
	}
public function getConnection(): Connection
	{
		if(empty(static::$connectionManager))
		{
			static::$connectionManager = Application::instance()->getContainer()->get('database');
		}

		return static::$connectionManager->connection($this->connectionName);
	}
public function getConnection ( ) : Connection { if ( empty ( static :: $ connectionManager ) ) { static :: $ connectionManager = Application :: instance ( ) -> getContainer ( ) -> get ( 'database' ) ; } return static :: $ connectionManager -> connection ( $ this -> connectionName ) ; }
Returns the connection of the model.

@return \mako\database\connections\Connection
Returns the connection of the model .