public function sanitizeData($property, $validations = null)
    {
        $value = $this->_mixer->get($property);
        $value = $this->_mixer->getValidator()
                        ->sanitizeData($this->_mixer, $property, $value, $validations);

        $this->_mixer->getRepository()->getCommandChain()->disable();
        $this->_mixer->set($property, $value);
        $this->_mixer->getRepository()->getCommandChain()->enable();

        return $this->_mixer;
    }
public function sanitizeData($property, $validations = null)
    {
        $value = $this->_mixer->get($property);
        $value = $this->_mixer->getValidator()
                        ->sanitizeData($this->_mixer, $property, $value, $validations);

        $this->_mixer->getRepository()->getCommandChain()->disable();
        $this->_mixer->set($property, $value);
        $this->_mixer->getRepository()->getCommandChain()->enable();

        return $this->_mixer;
    }
public function sanitizeData ( $ property , $ validations = null ) { $ value = $ this -> _mixer -> get ( $ property ) ; $ value = $ this -> _mixer -> getValidator ( ) -> sanitizeData ( $ this -> _mixer , $ property , $ value , $ validations ) ; $ this -> _mixer -> getRepository ( ) -> getCommandChain ( ) -> disable ( ) ; $ this -> _mixer -> set ( $ property , $ value ) ; $ this -> _mixer -> getRepository ( ) -> getCommandChain ( ) -> enable ( ) ; return $ this -> _mixer ; }
Sanitizes an entity properties values using the passed validations.
If no validations are passed, the properties are validated using their
default validations.

@param string|array $property    One or more properties to validate
@param array        $validations The validations to use
Sanitizes an entity properties values using the passed validations . If no validations are passed the properties are validated using their default validations .