Vlasta Neubauer
Vlasta Neubauer
the offset is applied on the outer query instead of on the inner query. Fluent generates SQL code such as: ``` SELECT COUNT(*) FROM ( SELECT * FROM `table` )...
if a DateTime has different time zone, it shold be normalized to the time zone of server there may be databases, which are capable of saving a datetime with timezone,...
metoda RepositoryHelper::normalizeRepository() překládá jména tříd na malá písmena. to způsobuje, že: 1) ORM nemůže na operačních systémech s case sensitive filesystémem načíst třídy repozitářů/entit atp. pokud autoloader používá PSR-0 (přímé...
tahle drobnost mě tam neuvěřitelně štve. má to nějaký důvod? IDE kvůli tomu háže warningy, kdykoliv použiju $e->id jako klíč pole v projektech to řeším překrytím anotace na vyšší úrovni,...
``` php $entity = new WhateverEntity; $repository->attach($entity); $repository->clean(); $repository->flush(); // entita se uloží, ačkoliv by neměla $entity = $repository->getById(1); $entity->someParam = "whatever"; $repository->clean(); $repository->flush(); // entita se uloží, ačkoliv by...
https://www.php.net/manual/en/mysqli-result.fetch-array.php https://www.php.net/manual/en/mysqli-result.fetch-assoc.php
rule: Usage of "new" without parentheses is disallowed. (SlevomatCodingStandard.ControlStructures.NewWithParentheses.MissingParentheses) ``` $object3 = new class { public readonly int $foo; public int $bar; }; ``` is not detected at all (this...
``` $string = NightInterval::empty()->format(); NightInterval::createFromString($string); // will fail ```
parsing fails on `=` `SELECT t1.x IS NULL = t2.x AS col FROM t AS t1, t AS t2 ORDER BY col;`