You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your `Customer` entity should implement `MonsieurBiz\SyliusAntiSpamPlugin\Entity\QuarantineItemAwareInterface` and use the `MonsieurBiz\SyliusAntiSpamPlugin\Entity\QuarantineItemAwareTrait` trait.
77
+
78
+
```diff
79
+
namespace App\Entity\Customer;
29
80
30
-
<!--
31
-
1. Use the trait `\MonsieurBiz\SyliusAntiSpamPlugin\Entity\CustomerQuarantineItemAwareTrait` in your Customer entity.
81
+
use Doctrine\ORM\Mapping as ORM;
82
+
+ use MonsieurBiz\SyliusAntiSpamPlugin\Entity\QuarantineItemAwareInterface;
83
+
+ use MonsieurBiz\SyliusAntiSpamPlugin\Entity\QuarantineItemAwareTrait;
84
+
use Sylius\Component\Core\Model\Customer as BaseCustomer;
32
85
33
-
2. Update your env vars with your Recaptcha site key and secret :
86
+
#[ORM\Entity]
87
+
#[ORM\Table(name: 'sylius_customer')]
88
+
- class Customer extends BaseCustomer
89
+
+ class Customer extends BaseCustomer implements QuarantineItemAwareInterface
90
+
{
91
+
+ use QuarantineItemAwareTrait
92
+
}
93
+
```
94
+
95
+
**Update your database schema**
96
+
97
+
Update your database schema with the plugin migrations:
98
+
99
+
```bash
100
+
bin/console doctrine:migrations:migrate
101
+
```
34
102
35
-
RECAPTCHA3_KEY=my_site_key
36
-
RECAPTCHA3_SECRET=my_secret
103
+
Generate the migration and update your database schema with the new customer entity field:
0 commit comments