-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check if association already contains object #9580
Check if association already contains object #9580
Conversation
f43ae5e
to
2702b89
Compare
Please run |
d1515b3
to
53bfb55
Compare
@derrabus: Thank you for the hint, I did that. |
53bfb55
to
04ea736
Compare
{ | ||
parent::setUp(); | ||
|
||
$this->_schemaTool->createSchema( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use $this->createSchemaForModels
instead, and remove tearDown
(see #9526)
{ | ||
$this->createData(); | ||
|
||
$dql = <<<DQL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$dql = <<<DQL | |
$dql = <<<'DQL' |
self::assertCount(1, $containers[0]->items); | ||
self::assertCount(1, $containers[0]->items[0]->parts); | ||
|
||
$dql = <<<DQL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$dql = <<<DQL | |
$dql = <<<'DQL' |
public $id; | ||
|
||
/** | ||
* @var GH9579Item[] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @var GH9579Item[] | |
* @var Collection<int, GH9579Item> |
public $id; | ||
|
||
/** | ||
* @var GH9579Part |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @var GH9579Part | |
* @var Collection<int, GH9579Part> |
64a0f85
to
b558cb2
Compare
@greg0ire Thank you for the review. I updated the PR. |
$this->createSchemaForModels( | ||
GH9579Container::class, | ||
GH9579Item::class, | ||
GH9579Part::class, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing commas are not allowed on old versions of PHP
GH9579Part::class, | |
GH9579Part::class |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, just saw this, too.. already fixed ;)
b558cb2
to
61cb557
Compare
Thanks @klammbueddel ! |
Can we please change the PR title to something we want to read in the changelog? 🙂 |
This PR adds a test to reproduce #9579