src/Entity/EntityTrait.php
public function hydrate(array $properties)
    {
        foreach ($properties as $prop => $val) {
            if (property_exists($this, $prop)) {
                $this->{$prop} = $val;
            }
        }

        return $this;
    }
public function hydrate(array $properties)
    {
        foreach ($properties as $prop => $val) {
            if (property_exists($this, $prop)) {
                $this->{$prop} = $val;
            }
        }

        return $this;
    }
public function hydrate ( array $ properties ) { foreach ( $ properties as $ prop => $ val ) { if ( property_exists ( $ this , $ prop ) ) { $ this -> { $ prop } = $ val ; } } return $ this ; }
Hydrate an entity with properites

@param array $properties

@return self
Hydrate an entity with properites