- Added Events to repository and entitytrait objects. Some more work to be done on this.

- Diverses bug fixes linked to join and relations
- Field date and datetime are now outputed using given locale.
This commit is contained in:
Dave Mc Nicoll committed 2020-05-20 15:34:50 -04:00
1 parent 1839726dc0
commit 4d221859fc
15 files changed
+421 -99

No files matched your search

+17 -1
View File
@@ -14,7 +14,7 @@ abstract class Sql {
protected array $arguments;
public function __construct(string $name, ...$arguments) {
public function __construct( $name, ...$arguments) {
$this->name = $name;
$this->arguments = $arguments;
$this->parseArguments();
@@ -39,6 +39,22 @@ abstract class Sql {
}
};
}
public static function identifier(string $identifier) : object
{
return new class($identifier) {
protected string $identifier;
public function __construct(string $identifier) {
$this->identifier = $identifier;
}
public function __toString() {
return $this->identifier;
}
};
}
public static function escape($value)
{