File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 4
4
5
5
namespace MeiliSearch \Bundle \Test \Entity ;
6
6
7
- use DateTime ;
8
7
use Doctrine \ORM \Mapping as ORM ;
8
+ use Symfony \Component \Serializer \Annotation \Groups ;
9
9
10
10
/**
11
11
* @ORM\Entity
@@ -17,6 +17,7 @@ class Comment
17
17
* @ORM\Id
18
18
* @ORM\GeneratedValue
19
19
* @ORM\Column(type="integer", nullable=true)
20
+ * @Groups({"searchable"})
20
21
*/
21
22
private ?int $ id = null ;
22
23
@@ -34,12 +35,14 @@ class Comment
34
35
* max=10000,
35
36
* maxMessage="comment.too_long"
36
37
* )
38
+ * @Groups({"searchable"})
37
39
*/
38
40
private $ content ;
39
41
40
42
/**
41
43
* @var \DateTime
42
44
* @ORM\Column(type="datetime")
45
+ * @Groups({"searchable"})
43
46
*/
44
47
private $ publishedAt ;
45
48
Original file line number Diff line number Diff line change @@ -32,11 +32,13 @@ class Post
32
32
33
33
/**
34
34
* @ORM\Column(type="text", nullable=true)
35
+ * @Groups({"searchable"})
35
36
*/
36
37
private ?string $ content = null ;
37
38
38
39
/**
39
40
* @ORM\Column(type="datetime")
41
+ * @Groups({"searchable"})
40
42
*/
41
43
private ?\DateTime $ publishedAt = null ;
42
44
You can’t perform that action at this time.
0 commit comments