src/Database/ORM/Traits/QueryBuilding.php
/**
	 * Gets a query builder object linked to this model.
	 *
	 * @param string $column
	 * @param string $operator
	 * @return SelectHelper
	 */
Gets a query builder object linked to this model.
@param string $column
@param string $operator
@return SelectHelper
Gets a query builder object linked to this model . @param string $column @param string $operator @return SelectHelper
public static function where($column, $operator, $equals) {
		$o = (new static);
		$builder = DB::connection($o->getConnection())->select()->from($o->getTable())->where($column, $operator, $equals);
		$builder->setModel(get_class($o));
		return $builder;
	}
public static function where ( $ column , $ operator , $ equals ) { $ o = ( new static ) ; $ builder = DB :: connection ( $ o -> getConnection ( ) ) -> select ( ) -> from ( $ o -> getTable ( ) ) -> where ( $ column , $ operator , $ equals ) ; $ builder -> setModel ( get_class ( $ o ) ) ; return $ builder ; }
Gets a query builder object linked to this model.
Gets a query builder object linked to this model .