return $result;
} } // Get the array values and apply them to the object
$array =
$this->
makeArray();
$object =
new $className();
// Check for the entity method
if (method_exists($object, 'fill'
)) { $object->
fill($array);
} else { foreach ($array as $key =>
$value) { $object->
{$key} =
$value;
} } return $object;
} /**
* Generate new entities from the database
*
* @param int|null $count Optional number to create a collection
* @param bool $mock Whether to execute or mock the insertion
*
* @return array|object An array or object (based on returnType), or an array of returnTypes
*
* @throws FrameworkException
*/