category | OSS |
---|---|
package | OSS_Doctrine2 |
copyright | Copyright (c) 2007 - 2012, Open Source Solutions Limited, Dublin, Ireland |
license | New BSD License |
assignFromArray(\Doctrine\ORM\Mapping $entity, array $array, bool $throw) : \Doctrine\ORM\Mapping
The array indexes must match the setter function names less 'set'.
E.g. with array( 'Name' => 'Joe' ) we'd call setName()
\Doctrine\ORM\Mapping
The entity to assign values to
array
The associative array to take values from
bool
If no setter method exists in the entity for an array index, throw an exception
\OSS_Doctrine2_Exception |
If $trow param is passed and is true |
---|
\Doctrine\ORM\Mapping
The entity as passed for fluent interfaces