I want to count the number of records created on a certain date, but this number MUST include those marked for deletion
The above code only counts the non-deleted ones.
How can I take into account those records which have been deleted?
Code:
$count = $this->getEntityManager()->getRepository($entityType)->where([ 'createdAt*' => date("Y-m-d %:%:%") ])->count();
How can I take into account those records which have been deleted?
Comment