Category: null

Symfony 4 : "must implement interface DateTimeInterface" Error

I’m creating an admin with easy admin bundle, i’m really new to Symfony4. I’ve a button “create a category” and when i click on it, I’ve this error : Return value of AppEntityCategory::getCreatedAt() must implement interface DateTimeInterface, null returned Code:…