- Fixed Entity::field("propertyname") function to look for name into @Field() annotation and returns it if it exists. - A lot of bug fixes made into SQL fragments.
20 lines
339 B
PHP
20 lines
339 B
PHP
<?php
|
|
|
|
namespace Ulmus\Query;
|
|
|
|
class Explain extends Fragment {
|
|
|
|
const SQL_TOKEN = "EXPLAIN";
|
|
|
|
public int $order = -1500;
|
|
|
|
public bool $extended = false;
|
|
|
|
public function render() : string
|
|
{
|
|
return $this->renderSegments([
|
|
static::SQL_TOKEN, $this->extended ? "EXTENDED" : ""
|
|
]);
|
|
}
|
|
}
|