src/Database/ORM/Traits/QueryBuilding.php
/**
	 * Creates a `SELECT` query builder for the model.
	 *
	 * @return SelectHelper
	 */
Creates a `SELECT` query builder for the model.
Creates a ` SELECT ` query builder for the model .
public static function query() {
		$o = (new static);
		$builder = DB::connection($o->getConnection())->select()->from($o->getTable());
		$builder->setModel(get_class($o));
		return $builder;
	}
public static function query ( ) { $ o = ( new static ) ; $ builder = DB :: connection ( $ o -> getConnection ( ) ) -> select ( ) -> from ( $ o -> getTable ( ) ) ; $ builder -> setModel ( get_class ( $ o ) ) ; return $ builder ; }
Creates a `SELECT` query builder for the model.
Creates a ` SELECT ` query builder for the model .