public function fromArray(array $values)
    {
        foreach ($values as $property => $value) {
            $this->__set($property, $value);
        }
        
        return $this;
    }
public function fromArray(array $values)
    {
        foreach ($values as $property => $value) {
            $this->__set($property, $value);
        }
        
        return $this;
    }
public function fromArray ( array $ values ) { foreach ( $ values as $ property => $ value ) { $ this -> __set ( $ property , $ value ) ; } return $ this ; }
Metoda wypelniajaca obiekt na podstawie tablicy

@param array $values
@return \Entity\AbstractEntity
Metoda wypelniajaca obiekt na podstawie tablicy