1
0
mirror of synced 2025-03-06 21:06:16 +03:00

Fix PHP syntax error in composite-primary-keys.rst

Add missing semicolon after `private $year` on line 12 of `Car` class example code to fix `Parse error: syntax error, unexpected 'public' (T_PUBLIC), expecting ',' or ';' in [...]/VehicleCatalogue/Model/Car.php on line 14`
This commit is contained in:
Guilliam Xavier 2016-03-24 18:08:58 +01:00
parent c1943624ab
commit 60e2224e6b

View File

@ -38,7 +38,7 @@ and year of production as primary keys:
/** @Id @Column(type="string") */ /** @Id @Column(type="string") */
private $name; private $name;
/** @Id @Column(type="integer") */ /** @Id @Column(type="integer") */
private $year private $year;
public function __construct($name, $year) public function __construct($name, $year)
{ {