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