Skip to content

Commit 8457535

Browse files
authored
Forward table entity generic (#319)
* Forward table entity generic * Use git repos for stacked dependencies
1 parent 2b6bc48 commit 8457535

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

composer.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,20 @@
2525
"issues": "https://github.com/dereuromark/cakephp-tools/issues",
2626
"source": "https://github.com/dereuromark/cakephp-tools"
2727
},
28+
"repositories": [
29+
{
30+
"type": "git",
31+
"url": "https://github.com/cakephp/cakephp.git"
32+
},
33+
{
34+
"type": "git",
35+
"url": "https://github.com/dereuromark/cakephp-shim.git"
36+
}
37+
],
2838
"require": {
2939
"php": ">=8.2",
30-
"cakephp/cakephp": "^5.1.1",
31-
"dereuromark/cakephp-shim": "^3.0.0"
40+
"cakephp/cakephp": "dev-copilot/table-entity-generics-clean as 5.3.3",
41+
"dereuromark/cakephp-shim": "dev-copilot/table-entity-generics as 3.8.3"
3242
},
3343
"require-dev": {
3444
"fig-r/psr2r-sniffer": "dev-master",

src/Model/Table/Table.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
* @mixin \Tools\Model\Behavior\ResetBehavior
2525
*
2626
* @template TBehaviors of array<string, \Cake\ORM\Behavior> = array{}
27+
* @template TEntity of \Cake\Datasource\EntityInterface = \Cake\Datasource\EntityInterface
28+
* @extends \Shim\Model\Table\Table<TBehaviors, TEntity>
2729
*/
2830
class Table extends ShimTable {
2931

0 commit comments

Comments
 (0)