Skip to content

Commit 0e9075f

Browse files
committed
attr
1 parent 2ef0e6e commit 0e9075f

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

composer.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
],
3939
"require": {
4040
"php": ">=8.1",
41-
"cycle/orm": "^2.9.2",
42-
"cycle/schema-builder": "^2.11.1",
41+
"cycle/orm": "dev-obsolete-column as 2.9.2",
42+
"cycle/schema-builder": "dev-obsolete-column as 2.11.1",
4343
"spiral/attributes": "^2.8|^3.0",
4444
"spiral/tokenizer": "^2.8|^3.0",
4545
"doctrine/inflector": "^2.0"
@@ -61,6 +61,16 @@
6161
"Cycle\\Annotated\\Tests\\": "tests/Annotated/"
6262
}
6363
},
64+
"repositories": [
65+
{
66+
"type": "git",
67+
"url": "https://github.com/gam6itko/cycle-orm.git"
68+
},
69+
{
70+
"type": "git",
71+
"url": "https://github.com/gam6itko/schema-builder.git"
72+
}
73+
],
6474
"scripts": {
6575
"cs:diff": "php-cs-fixer fix --dry-run -v --diff",
6676
"cs:fix": "php-cs-fixer fix -v",

tests/Annotated/Functional/Driver/Common/ObsoleteTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ public function testObsoleteColumn(ReaderInterface $reader): void
6161
$this->assertArrayNotHasKey('skype', $schema['user'][SchemaInterface::TYPECAST]);
6262
$this->assertArrayNotHasKey('passport', $schema['user'][SchemaInterface::RELATIONS]);
6363
$this->assertArrayNotHasKey('address', $schema['user'][SchemaInterface::RELATIONS]);
64+
$this->assertArrayNotHasKey('bornCity', $schema['user'][SchemaInterface::RELATIONS]);
6465
// passport
6566
$this->assertArrayNotHasKey('user', $schema['passport'][SchemaInterface::RELATIONS]);
67+
// city
68+
$this->assertArrayNotHasKey('bornUsers', $schema['city'][SchemaInterface::RELATIONS]);
6669
}
6770
}

0 commit comments

Comments
 (0)