I cannot see how can i make $model->field object request to be more customizable:
class DbBetweenValidator extends Validator implements ValidatorInterface
{
public function validate(EntityInterface $model)
{
$field = $this->getOption('field');
$newStart = $this->getOption('startTime');
$newEnd = $this->getOption('endTime');
$value = $model->$field;
The field is an event time and there can be multiple events for a particular day. So i would like to get all event times for a distinct date. Is it possible to do it with object model or i need to use phql or something like that?
Thank you.