@@ -11,40 +11,39 @@ use Tester\Assert;
1111require_once __DIR__ . '/../bootstrap.php ' ;
1212
1313/**
14- * @property int $id
14+ * @property int $id
1515 * @property string $name
1616 */
1717class Tag extends Entity
1818{
1919}
2020
2121/**
22- * @property int $id
23- * @property Author $author m:hasOne
24- * @property Author|NULL $reviewer m:hasOne(reviewer_id)
25- * @property Tag[] $tags m:hasMany
26- * @property string $pubdate
27- * @property string $name
22+ * @property int $id
23+ * @property Author $author m:hasOne
24+ * @property Author|NULL $reviewer m:hasOne(reviewer_id)
25+ * @property Tag[] $tags m:hasMany
26+ * @property string $pubdate
27+ * @property string $name
2828 * @property string|NULL $description
2929 * @property string|NULL $website
30- * @property bool $available
30+ * @property bool $available
3131 */
3232class Book extends Entity
3333{
3434}
3535
3636/**
37- * @property int $id
38- * @property string $name
39- * @property Book[] $books m:belongsToMany
40- * @property Book[] $reviewedBooks m:belongsToMany(reviewer_id)
37+ * @property int $id
38+ * @property string $name
39+ * @property Book[] $books m:belongsToMany
40+ * @property Book[] $reviewedBooks m:belongsToMany(reviewer_id)
4141 * @property string|NULL $web
4242 */
4343class Author extends Entity
4444{
4545}
4646
47-
4847//////// Basic joins ////////
4948
5049// HasOne relationship
@@ -81,7 +80,6 @@ $expected = getFluent('book')
8180 ->where ("([tag].[name] <> 'php') " );
8281Assert::same ((string ) $ expected , (string ) $ fluent );
8382
84-
8583//////// Multiple join of the same table ////////
8684
8785$ fluent = getFluent ('book ' );
@@ -95,7 +93,6 @@ $expected = getFluent('book')
9593 ->where ("([author_reviewer_id].[web] = 'http://leanmapper.com') " );
9694Assert::same ((string ) $ expected , (string ) $ fluent );
9795
98-
9996//////// Optional specifying of primary key ////////
10097
10198// HasOne
0 commit comments