@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\Tests\ORM\Functional\Ticket; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\Tests\ORM\Functional\Ticket; |
| 6 | 6 | |
@@ -27,8 +27,8 @@ discard block |
||
| 27 | 27 | { |
| 28 | 28 | $qb = $this->em->createQueryBuilder(); |
| 29 | 29 | $qb->select('p', 'r') |
| 30 | - ->from(__NAMESPACE__ . '\DDC698Privilege', 'p') |
|
| 31 | - ->leftJoin('p.roles', 'r'); |
|
| 30 | + ->from(__NAMESPACE__ . '\DDC698Privilege', 'p') |
|
| 31 | + ->leftJoin('p.roles', 'r'); |
|
| 32 | 32 | |
| 33 | 33 | self::assertSQLEquals( |
| 34 | 34 | 'SELECT t0."privilegeID" AS c0, t0."name" AS c1, t1."roleID" AS c2, t1."name" AS c3, t1."shortName" AS c4 FROM "Privileges" t0 LEFT JOIN "RolePrivileges" t2 ON t0."privilegeID" = t2."privilegeID" LEFT JOIN "Roles" t1 ON t1."roleID" = t2."roleID"', |
@@ -44,37 +44,37 @@ discard block |
||
| 44 | 44 | */ |
| 45 | 45 | class DDC698Role |
| 46 | 46 | { |
| 47 | - /** |
|
| 48 | - * @ORM\Id @ORM\Column(name="roleID", type="integer") |
|
| 49 | - * @ORM\GeneratedValue(strategy="AUTO") |
|
| 50 | - * |
|
| 51 | - */ |
|
| 52 | - protected $roleID; |
|
| 53 | - |
|
| 54 | - /** |
|
| 55 | - * @ORM\Column(name="name", type="string", length=45) |
|
| 56 | - * |
|
| 57 | - * |
|
| 58 | - */ |
|
| 59 | - protected $name; |
|
| 60 | - |
|
| 61 | - /** |
|
| 62 | - * @ORM\Column(name="shortName", type="string", length=45) |
|
| 63 | - * |
|
| 64 | - * |
|
| 65 | - */ |
|
| 66 | - protected $shortName; |
|
| 67 | - |
|
| 68 | - |
|
| 69 | - |
|
| 70 | - /** |
|
| 71 | - * @ORM\ManyToMany(targetEntity="DDC698Privilege", inversedBy="roles") |
|
| 72 | - * @ORM\JoinTable(name="RolePrivileges", |
|
| 73 | - * joinColumns={@ORM\JoinColumn(name="roleID", referencedColumnName="roleID")}, |
|
| 74 | - * inverseJoinColumns={@ORM\JoinColumn(name="privilegeID", referencedColumnName="privilegeID")} |
|
| 75 | - * ) |
|
| 76 | - */ |
|
| 77 | - protected $privilege; |
|
| 47 | + /** |
|
| 48 | + * @ORM\Id @ORM\Column(name="roleID", type="integer") |
|
| 49 | + * @ORM\GeneratedValue(strategy="AUTO") |
|
| 50 | + * |
|
| 51 | + */ |
|
| 52 | + protected $roleID; |
|
| 53 | + |
|
| 54 | + /** |
|
| 55 | + * @ORM\Column(name="name", type="string", length=45) |
|
| 56 | + * |
|
| 57 | + * |
|
| 58 | + */ |
|
| 59 | + protected $name; |
|
| 60 | + |
|
| 61 | + /** |
|
| 62 | + * @ORM\Column(name="shortName", type="string", length=45) |
|
| 63 | + * |
|
| 64 | + * |
|
| 65 | + */ |
|
| 66 | + protected $shortName; |
|
| 67 | + |
|
| 68 | + |
|
| 69 | + |
|
| 70 | + /** |
|
| 71 | + * @ORM\ManyToMany(targetEntity="DDC698Privilege", inversedBy="roles") |
|
| 72 | + * @ORM\JoinTable(name="RolePrivileges", |
|
| 73 | + * joinColumns={@ORM\JoinColumn(name="roleID", referencedColumnName="roleID")}, |
|
| 74 | + * inverseJoinColumns={@ORM\JoinColumn(name="privilegeID", referencedColumnName="privilegeID")} |
|
| 75 | + * ) |
|
| 76 | + */ |
|
| 77 | + protected $privilege; |
|
| 78 | 78 | |
| 79 | 79 | } |
| 80 | 80 | |
@@ -86,22 +86,22 @@ discard block |
||
| 86 | 86 | */ |
| 87 | 87 | class DDC698Privilege |
| 88 | 88 | { |
| 89 | - /** |
|
| 90 | - * @ORM\Id @ORM\Column(name="privilegeID", type="integer") |
|
| 91 | - * @ORM\GeneratedValue(strategy="AUTO") |
|
| 92 | - * |
|
| 93 | - */ |
|
| 94 | - protected $privilegeID; |
|
| 95 | - |
|
| 96 | - /** |
|
| 97 | - * @ORM\Column(name="name", type="string", length=45) |
|
| 98 | - * |
|
| 99 | - * |
|
| 100 | - */ |
|
| 101 | - protected $name; |
|
| 102 | - |
|
| 103 | - /** |
|
| 89 | + /** |
|
| 90 | + * @ORM\Id @ORM\Column(name="privilegeID", type="integer") |
|
| 91 | + * @ORM\GeneratedValue(strategy="AUTO") |
|
| 92 | + * |
|
| 93 | + */ |
|
| 94 | + protected $privilegeID; |
|
| 95 | + |
|
| 96 | + /** |
|
| 97 | + * @ORM\Column(name="name", type="string", length=45) |
|
| 98 | + * |
|
| 99 | + * |
|
| 100 | + */ |
|
| 101 | + protected $name; |
|
| 102 | + |
|
| 103 | + /** |
|
| 104 | 104 | * @ORM\ManyToMany(targetEntity="DDC698Role", mappedBy="privilege") |
| 105 | 105 | */ |
| 106 | - protected $roles; |
|
| 106 | + protected $roles; |
|
| 107 | 107 | } |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\Tests\ORM\Functional\Ticket; |
| 6 | 6 | |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | $this->em->getClassMetadata(DDC698Privilege::class) |
| 19 | 19 | ] |
| 20 | 20 | ); |
| 21 | - } catch(\Exception $e) { |
|
| 21 | + } catch (\Exception $e) { |
|
| 22 | 22 | |
| 23 | 23 | } |
| 24 | 24 | } |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | { |
| 28 | 28 | $qb = $this->em->createQueryBuilder(); |
| 29 | 29 | $qb->select('p', 'r') |
| 30 | - ->from(__NAMESPACE__ . '\DDC698Privilege', 'p') |
|
| 30 | + ->from(__NAMESPACE__.'\DDC698Privilege', 'p') |
|
| 31 | 31 | ->leftJoin('p.roles', 'r'); |
| 32 | 32 | |
| 33 | 33 | self::assertSQLEquals( |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\Tests\ORM\Functional\Ticket; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\Tests\ORM\Functional\Ticket; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\Tests\ORM\Functional\Ticket; |
| 6 | 6 | |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | $product->addBuyer($user); |
| 36 | 36 | |
| 37 | 37 | $this->em->getUnitOfWork() |
| 38 | - ->computeChangeSets(); |
|
| 38 | + ->computeChangeSets(); |
|
| 39 | 39 | |
| 40 | 40 | $this->em->persist($product); |
| 41 | 41 | $this->em->flush(); |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\Tests\ORM\Functional\Ticket; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\Tests\ORM\Functional\Ticket; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\Tests\ORM\Functional\Ticket; |
| 6 | 6 | |