File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed
Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,12 @@ abstract class Entity extends LeanMapper\Entity
3030 /** @var array */
3131 protected static $ magicMethodsPrefixes = [];
3232
33+ /**
34+ * @template T of Entity
35+ * @param string $field
36+ * @param IQuery<T> $query
37+ * @return T[]
38+ */
3339 protected function queryProperty ($ field , IQuery $ query )
3440 {
3541 return static ::queryEntityProperty ($ this , $ field , $ query );
Original file line number Diff line number Diff line change 1414/**
1515 * @author Michal Bohuslávek
1616 * @deprecated use Query instead; the IQuery interface might get removed in the future
17+ *
18+ * @template T of Entity
1719 */
1820interface IQuery
1921{
Original file line number Diff line number Diff line change 2424/**
2525 * @author Michal Bohuslávek
2626 *
27+ * @template T of Entity
28+ *
2729 * @method $this where($cond, ...$args)
2830 * @method $this orderBy($field)
2931 * @method $this asc(bool $asc = true)
You can’t perform that action at this time.
0 commit comments