File tree Expand file tree Collapse file tree 7 files changed +26
-1
lines changed Expand file tree Collapse file tree 7 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 21
21
"php" : " ^7.4|^8.0" ,
22
22
"ext-json" : " *" ,
23
23
"doctrine/doctrine-bundle" : " ^2.4" ,
24
- "meilisearch/meilisearch-php" : " ^0.27 .0" ,
24
+ "meilisearch/meilisearch-php" : " ^1.0 .0" ,
25
25
"symfony/filesystem" : " ^4.4 || ^5.0 || ^6.0" ,
26
26
"symfony/property-access" : " ^4.4 || ^5.0 || ^6.0" ,
27
27
"symfony/serializer" : " ^4.4 || ^5.0 || ^6.0"
Original file line number Diff line number Diff line change 9
9
10
10
/**
11
11
* @ORM\Entity
12
+ *
12
13
* @ORM\Table(name="comments")
13
14
*/
14
15
class Comment
15
16
{
16
17
/**
17
18
* @ORM\Id
19
+ *
18
20
* @ORM\GeneratedValue
21
+ *
19
22
* @ORM\Column(type="integer", nullable=true)
23
+ *
20
24
* @Groups({"searchable"})
21
25
*/
22
26
private ?int $ id = null ;
23
27
24
28
/**
25
29
* @ORM\ManyToOne(targetEntity="Post", inversedBy="comments")
30
+ *
26
31
* @ORM\JoinColumn(nullable=false)
27
32
*/
28
33
private ?Post $ post = null ;
@@ -36,6 +41,7 @@ class Comment
36
41
* max=10000,
37
42
* maxMessage="comment.too_long"
38
43
* )
44
+ *
39
45
* @Groups({"searchable"})
40
46
*/
41
47
private $ content ;
@@ -44,6 +50,7 @@ class Comment
44
50
* @var \DateTime
45
51
*
46
52
* @ORM\Column(type="datetime")
53
+ *
47
54
* @Groups({"searchable"})
48
55
*/
49
56
private $ publishedAt ;
Original file line number Diff line number Diff line change @@ -13,7 +13,9 @@ class Image
13
13
{
14
14
/**
15
15
* @ORM\Id
16
+ *
16
17
* @ORM\GeneratedValue
18
+ *
17
19
* @ORM\Column(type="integer")
18
20
*/
19
21
private ?int $ id ;
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ class Link implements NormalizableInterface
16
16
{
17
17
/**
18
18
* @ORM\Id
19
+ *
19
20
* @ORM\Column(type="integer")
20
21
*/
21
22
private int $ id ;
Original file line number Diff line number Diff line change 9
9
10
10
/**
11
11
* @ORM\Entity
12
+ *
12
13
* @ORM\Table(name="pages")
13
14
*/
14
15
class Page
15
16
{
16
17
/**
17
18
* @ORM\Id
19
+ *
18
20
* @ORM\GeneratedValue(strategy="NONE")
21
+ *
19
22
* @ORM\Column(type="object")
20
23
*/
21
24
private $ id = null ;
22
25
23
26
/**
24
27
* @ORM\Column(type="string", nullable=true)
28
+ *
25
29
* @Groups({"searchable"})
26
30
*/
27
31
private ?string $ title = null ;
28
32
29
33
/**
30
34
* @ORM\Column(type="text", nullable=true)
35
+ *
31
36
* @Groups({"searchable"})
32
37
*/
33
38
private ?string $ content = null ;
Original file line number Diff line number Diff line change 11
11
12
12
/**
13
13
* @ORM\Entity
14
+ *
14
15
* @ORM\Table(name="posts")
15
16
*/
16
17
class Post
17
18
{
18
19
/**
19
20
* @ORM\Id
21
+ *
20
22
* @ORM\GeneratedValue
23
+ *
21
24
* @ORM\Column(type="integer")
25
+ *
22
26
* @Groups({"searchable"})
23
27
* ^ Note that Groups work on private properties
24
28
*/
25
29
private ?int $ id = null ;
26
30
27
31
/**
28
32
* @ORM\Column(type="string", nullable=true)
33
+ *
29
34
* @Groups({"searchable"})
30
35
* ^ Note that Groups work on private properties
31
36
*/
32
37
private ?string $ title = null ;
33
38
34
39
/**
35
40
* @ORM\Column(type="text", nullable=true)
41
+ *
36
42
* @Groups({"searchable"})
37
43
*/
38
44
private ?string $ content = null ;
39
45
40
46
/**
41
47
* @ORM\Column(type="datetime")
48
+ *
42
49
* @Groups({"searchable"})
43
50
*/
44
51
private ?\DateTime $ publishedAt = null ;
@@ -51,7 +58,9 @@ class Post
51
58
* mappedBy="post",
52
59
* orphanRemoval=true
53
60
* )
61
+ *
54
62
* @ORM\OrderBy({"publishedAt": "DESC"})
63
+ *
55
64
* @Groups({"searchable"})
56
65
*/
57
66
private $ comments ;
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ class Tag implements NormalizableInterface
17
17
{
18
18
/**
19
19
* @ORM\Id
20
+ *
20
21
* @ORM\Column(type="integer", nullable=true)
21
22
*/
22
23
private ?int $ id ;
You can’t perform that action at this time.
0 commit comments