| 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\MappingThe entity to assign values to
arrayThe associative array to take values from
boolIf 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\MappingThe entity as passed for fluent interfaces