Populate from an array.

@param array $data
776609
public function populate($data = array())
    {
        parent::populate($data);

        if (isset($data['scheduleOccurrenceAuto']) && $data['scheduleOccurrenceAuto'] !== null) {
            $this->scheduleOccurrenceAuto = $data['scheduleOccurrenceAuto'];
        }

        if (isset($data['occurrenceNumber']) && $data['occurrenceNumber'] !== null) {
            $this->occurrenceNumber = $data['occurrenceNumber'];
        }

        if (isset($data['winningOccurrenceNumber']) && $data['winningOccurrenceNumber'] !== null) {
            $this->occurrenceNumber = $data['winningOccurrenceNumber'];
        }

        if (isset($data['occurrenceType']) && $data['occurrenceType'] !== null) {
            $this->occurrenceType = $data['occurrenceType'];
        }
    }
595723
public function fromArray($data)
    {
        foreach ($data as $param => $value) {
            if (!method_exists($this, 'set' . ucfirst($param))) {
                continue;
            }
            $this->{'set' . ucfirst($param)}($value);
        }
        return $this;
    }
797345
private function addVerticesFromArray(array $data)
    {
        $_documentClass = $this->_documentClass;

        $this->_result[] = $_documentClass::createFromArray($data, $this->_options);
    }
1076792
public function setup($data = array())
	{

		foreach (self::$_KEYS as $k)
		{
			if (array_key_exists($k, $data))
			{
				$this->_API[$k] = self::verifySetup($k, $data[$k]);
			}
		}
	}
1295759
private function fromArray(array $data)
    {
        $this->browserName = $data['browser_name'];
        $this->browserVersion = $data['browser_version'];
        $this->browserEngine = $data['browser_engine'];
        $this->operatingSystem = $data['operating_system'];
        $this->device = $data['device'];
    }
1026583
private function addEdgesFromArray(array $data)
    {
        $_edgeClass = $this->_edgeClass;

        $this->_result[] = $_edgeClass::createFromArray($data, $this->_options);
    }
1062012
public function populate($data)
    {
        if (is_null($data)) {
            return $this;
        }

        $data = $this->normalizeData($data);

        $fromDb = false;
        if ($this->isDbData($data)) {
            $fromDb = true;
        } else {
            unset($data['id']);
            unset($data['_id']);
        }

        $validation = $this->arr();

        /* @var $entityAttribute AbstractAttribute */
        foreach ($this->attributes as $attributeName => $entityAttribute) {
            if (!$entityAttribute->getAfterPopulate()) {
                $this->populateAttribute($attributeName, $entityAttribute, $validation, $data, $fromDb);
            }
        }

        foreach ($this->attributes as $attributeName => $entityAttribute) {
            if ($entityAttribute->getAfterPopulate()) {
                $this->populateAttribute($attributeName, $entityAttribute, $validation, $data, $fromDb);
            }
        }

        if ($validation->count() > 0) {
            $attributes = [];
            foreach ($validation as $attr => $error) {
                foreach ($error as $key => $value) {
                    $attributes[$key] = $value;
                }
            }
            $ex = new EntityException(EntityException::VALIDATION_FAILED, [get_class($this), $validation->count()]);
            $ex->setInvalidAttributes($attributes);
            throw $ex;
        }

        return $this;
    }
994131
public function populateFromDynamoDB(array $data)
    {
        foreach ($data as $name => $value) {
            list ($type, $value) = each($value);
            $this->setAttribute($name, $value, $type);
        }
    }
1162492
public function fromArray(array $array) {
        $rows = count($array);
        for ($i=$rows;$i-->0;) {
            $this[$i]->fromArray($array[$i]);
        }
    }
592004
public function populate(
        array $data,
        array $ignore = ['createdByUserId', 'createdDate', 'createdReason']
    ) {
        $prefix = 'set';

        foreach ($data as $property => $value) {
            // Check for ignore keys
            if (in_array($property, $ignore)) {
                continue;
            }

            $method = $prefix . ucfirst($property);

            if (method_exists($this, $method)) {
                $this->$method($value);
            }
        }
    }
911451
public function populate($data=array())
    {
    	foreach ($data as $k=>$v)
    	{
    		// Promise that if this is a new record, we aren't handling any end-user data for $data
    		if ($this->isNewRecord)
    			$this->$k = $v;
    		else
    		{
	    		if(isset($this->attributes[$k]))
	    			$this->$k = $v;
	    	}
    	}

    	return $this->attributes;
    }
529576
public function fillFromArray(array $data)
	{
		$data = $data + array(
				'style' 		=> null,
				'align' 		=> null,
				'alternate_text' 	=> null,
				'title' 		=> null,
				'description' 	=> null,

				'size_width' 	=> null,
				'size_name' 	=> null,
				'crop_top' 		=> null,
				'crop_left' 	=> null,
				'crop_width' 	=> null,
				'crop_height' 	=> null,

				'size_height' 	=> null,
			);

		$this->imageId = $data['id'];
		$this->align = $data['align'];
		$this->style = $data['style'];
		$this->alternateText = $data['alternate_text'];
		$this->title = $data['title'];
		$this->description = $data['description'];

		$this->sizeName = $data['size_name'];

		$this->setWidth($data['size_width']);
		$this->setHeight($data['size_height']);
		$this->setCropTop($data['crop_top']);
		$this->setCropLeft($data['crop_left']);
		$this->setCropWidth($data['crop_width']);
		$this->setCropHeight($data['crop_height']);
	}
399008
public function populate($data = array())
    {
        if (isset($data['title']) && $data['title'] != null) {
            $this->title = $data['title'];
        }

        if (isset($data['subtitle'])) {
            $this->subtitle = $data['subtitle'];
        }
        
        if (isset($data['type']) && $data['type'] != null) {
            $this->type = $data['type'];
        }

        if (isset($data['media']) && $data['media'] != null) {
            $this->media = $data['media'];
        }

        if (isset($data['position']) && $data['position'] != null) {
            $this->position = $data['position'];
        }

        if (isset($data['description'])) {
            $this->description = $data['description'];
        }

        if (isset($data['link'])) {
            $this->link = $data['link'];
        }

        if (isset($data['linkText'])) {
            $this->linkText = $data['linkText'];
        }
    }
1327990
public function populate($data = array())
    {
        $this->title = (isset($data['title'])) ? $data['title'] : null;
        $this->dynarea = (isset($data['dynarea'])) ? $data['dynarea'] : null;
        if (isset($data['is_active']) && $data['is_active'] != null) {
            $this->is_active = $data['is_active'];
        }
        if (isset($data['position']) && $data['position'] != null) {
            $this->position = $data['position'];
        }
        $this->identifier = (isset($data['identifier'])) ? $data['identifier'] : null;
        $this->type = (isset($data['type'])) ? $data['type'] : null;
    }
1112551
public function populateNodes($data)
    {
        if (!\Genesis\Utils\Common::isValidArray($data)) {
            throw new \Genesis\Exceptions\InvalidArgument('Invalid data structure');
        }

        // Ensure that the Array position is 0
        reset($data);

        $this->iterateArray(key($data), reset($data));

        // Finish the document
        $this->context->endDocument();
    }
1215989
public function populate($data = array())
    {
        $this->value = (isset($data['value']) && $data['value'] !== null) ? $data['value'] : null;
        $this->active = (isset($data['active']) && $data['active'] !== null) ? $data['active'] : null;
        $this->winning = (isset($data['winning']) && $data['winning'] !== null) ? $data['winning'] : null;
    }
700869
public function populate(array $data = [], array $ignore = ['createdByUserId', 'createdDate', 'createdReason'])
    {
        if (!empty($data['domainId']) && !in_array('domainId', $ignore)) {
            $this->setDomainId($data['domainId']);
        }
        // @bc support
        if (!empty($data['domain']) && !in_array('domainId', $ignore)) {
            $this->setDomainName($data['domain']);
        }
        if (!empty($data['domainName']) && !in_array('domainId', $ignore)) {
            $this->setDomainName($data['domainName']);
        }

        if (!empty($data['primaryDomain'])
            && !in_array('domainId', $ignore)
            && $data['primaryDomain'] instanceof Domain
        ) {
            $this->setPrimaryDomain($data['primaryDomain']);
        }
        // @bc support
        if (!empty($data['primary'])
            && !in_array('domainId', $ignore)
            && $data['primary'] instanceof Domain
        ) {
            $this->setPrimaryDomain($data['primary']);
        }
    }