Skip to content

Commit 7dd65dd

Browse files
committed
debug prod lol
1 parent 81d759c commit 7dd65dd

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

features/bootstrap/DoctrineContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1628,7 +1628,7 @@ public function thereIsACustomMultipleIdentifierDummy()
16281628
{
16291629
$dummy = $this->buildCustomMultipleIdentifierDummy();
16301630
$dummy->setName('Orwell');
1631-
$dummy->setFirstId($this->isOrm() ? 1 : '1');
1631+
$dummy->setFirstId(1);
16321632
$dummy->setSecondId(2);
16331633

16341634
$this->manager->persist($dummy);

tests/Fixtures/TestBundle/Document/CustomMultipleIdentifierDummy.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
class CustomMultipleIdentifierDummy
2727
{
2828
/**
29-
* @var string The custom identifier
29+
* @var int The custom identifier
3030
*
31-
* @ODM\Id(strategy="NONE", type="string")
31+
* @ODM\Id(strategy="NONE", type="integer")
3232
*/
3333
private $firstId;
3434

@@ -43,16 +43,16 @@ class CustomMultipleIdentifierDummy
4343
/**
4444
* @var string The dummy name
4545
*
46-
* @ODM\Field(type="integer")
46+
* @ODM\Field(type="string")
4747
*/
4848
private $name;
4949

50-
public function getFirstId(): string
50+
public function getFirstId(): int
5151
{
5252
return $this->firstId;
5353
}
5454

55-
public function setFirstId(string $firstId)
55+
public function setFirstId(int $firstId)
5656
{
5757
$this->firstId = $firstId;
5858
}

tests/Fixtures/TestBundle/Model/ProductInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
/**
2222
* @ApiResource(
2323
* shortName="Product",
24+
* attributes={"identified_by"="code"},
2425
* normalizationContext={
2526
* "groups"={"product_read"},
2627
* },

tests/Fixtures/TestBundle/Model/TaxonInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
/**
2222
* @ApiResource(
2323
* shortName="Taxon",
24+
* attributes={"identified_by"="code"},
2425
* normalizationContext={
2526
* "groups"={"taxon_read"},
2627
* },

0 commit comments

Comments
 (0)