public function prePersist($object)
    {
        if ($this->getHasContextProperty()) {

            $this->getResourceContextManager()->addContextRelationToObject(
                $object,
                $this->getContextPropertyValueNamePrefix()
            );
        }

        $object->setCreatedAt(new \Datetime());
        $object->setUpdatedAt(new \Datetime());
        if (is_null($object->getEnabled())) {
            $object->setEnabled(true);
        }
        return $object;
    }