src/AbstractDbEntity.php
public function setDbData(array $data)
    {
        foreach (array_keys(static::$dbProperties) as $propertyName) {
            if (array_key_exists($propertyName, $data)) {
                $this->setDbValue($propertyName, $data[$propertyName], true);
            }
        }
    }
public function setDbData(array $data)
    {
        foreach (array_keys(static::$dbProperties) as $propertyName) {
            if (array_key_exists($propertyName, $data)) {
                $this->setDbValue($propertyName, $data[$propertyName], true);
            }
        }
    }
public function setDbData ( array $ data ) { foreach ( array_keys ( static :: $ dbProperties ) as $ propertyName ) { if ( array_key_exists ( $ propertyName , $ data ) ) { $ this -> setDbValue ( $ propertyName , $ data [ $ propertyName ] , true ) ; } } }
Set database fields' data.

@param array $data
Set database fields data .