li3

NewsDocumentationVersionsPresentationsCommunityDevelopment
  • Documentation
  • Framework API (1.3.x)
  • lithium
  • test
  • fixtures
  • adapter
  • Connection
  • _init()

Contents

  • ../

lithium\test\fixtures\adapter\Connection::_init()

Overrides lithium\core\ObjectDeprecated::_init()
protected method

Initializer function called by the constructor unless the constructor

Related

  • lithium\core\Object::_init()

Source

	protected function _init() {
		parent::_init();

		if (!$this->_connection) {
			throw new ConfigException("The `'connection'` option must be set.");
		}
	}
GitHub / Twitter / Reddit / Stack Overflow
Testimonial Image

I don't look at it directly
out of respect.

Pretty much everything is (c) 2009-2025 and beyond, the Union of RAD.