Grab the user from the mapper

@param string $value
@return mixed
8807
protected function query($value)
    {
        $filters[$this->getKey()] = $value;
        $result = false;
//         if(!$this->getMapper()->enableFilters($filters))
//             throw new \Exception('Invalid filters used in record validator');
        
        $result = $this->getMapper()->findByFilters($filters);
        return $result;
    }
1237610
public function extract($value)
    {
        if (is_string($value)) {
            return new MongoId($value);
        }
        
        if ($this->nullable && $value === null) {
            return null;
        }
        
        throw new Exception\InvalidArgumentException(sprintf(
            'Invalid value: must be a string containing a valid mongo ID, "%s" given.',
            is_object($value) ? get_class($value) : gettype($value)
        ));
    }
334004
public function get($value, $field = '*', $name = 'id')
    {
        $map = array(
            $name => $value
        );
        return $this->where($map)
            ->field($field)
            ->find();
    }
203915
public function setUserValue(string $value) : self
    {
        $this->user_value = $value;
        $this->is_valid = null;
        return $this;
    }
993720
public function filter($value)
    {
        if (!is_string($value) && $value !== null) {
            return $value;
        }

        return $this->getAdapter()->decompress($value);
    }
650209
public function get($key, $value = null)
    {
        return $this->payloadBag->key($key, $value, true);
    }
61099
public function transform($value)
    {
        if ($value === null || $value == '') {
            return null;
        }
        if (!($value instanceof User)) {
            throw new TransformationFailedException('Expected an instance of a concrete5 user object.');
        }
        return intval($value->getUserID());
    }
479281
protected function valueRetriever($value)
    {
        if ($this->useAsCallable($value)) {
            return $value;
        }

        return function ($item) use ($value) {

            return ArrayHelper::dataGet($item, $value);
        };
    }
833398
public function setUser($value) : Permission
    {
        // Is this a scalar value representing the ID of this foreign key?
        if (is_scalar($value)) {
            return $this->setUserId($value);
        }

        // Is this an instance of User?
        if (is_object($value) && $value instanceof User) {
            return $this->setUserObject($value);
        }

        // Is this an array representing a User item?
        if (is_array($value) && !empty($value['id'])) {
            return $this->setUserId($value['id']);
        }

        // None of the above? That's a problem!
        throw new \Exception('Invalid value for User.');
    }
1239306
public function get($key, $value = null)
    {
        return $this->headerBag->key($key, $value, true);
    }
306430
public function get($value)
    {

        if (!empty($this->_array[$value])) {
            return $this->_array[$value];
        } else {
            return $value;
        }

    }
1172248
protected function getSerializedPropertyValue($value)
    {
        return ($value instanceof QueueableEntityInterface)
            ? new ModelIdentifier(get_class($value), $value->getQueueableId()) : $value;
    }
838298
public function getUser($property, $value)
    {
        $class = new \core_kernel_classes_Class(GenerisRdf::CLASS_GENERIS_USER);

        $users = \tao_models_classes_UserService::singleton()->searchInstances(
            array($property => $value), 
            $class,
            array('like' => false, 'recursive' => true)
        );
        $user = empty($users) ? null : current($users);
        
        return $user;
    }
988488
public function offsetPush($value)
    {

        $keys = $this->storage->keys();

        $nextId = $this->idGenerator->until(function ($id) use ($keys) {
            return !$keys->contains($id);
        })->generate($this->passSalt ? $value : null);

        $this->storage->offsetSet($nextId, $value);

        return $nextId;
    }
549953
protected function receiveUploadFieldValueFromRequest($value = 0)
    {
        $requestQueryParameter = $this->getRequest()->getQueryParams();
        $requestBody           = $this->getRequest()->getParsedBody();
        $fieldname             = $this->getFieldnameUpload();

        if (
            true === isset($requestQueryParameter[$fieldname]) &&
            1 == $requestQueryParameter[$fieldname]
        ) {
            $value = 1;
        } elseif (
            true === isset($requestBody[$fieldname]) &&
            1 == $requestBody[$fieldname]
        ) {
            $value = 1;
        }

        return $value;
    }
1133958
public function extract($value)
    {
        if ($this->nullable && $value === null) {
            return null;
        }
        
        return new MongoBinData($value, $this->type);
    }
702439
public function setEmail(string $value) : User
    {

        if ($this->data['email'] !== $value) {
            $this->data['email'] = $value;
            $this->setModified('email');
        }

        return $this;
    }