insert() public method

Insert record
public insert ( mixed $entity, array $options = [] )
$entity mixed Entity object or array of field => value pairs
$options array Array of adapter-specific options
 /**
  * Insert one new record using the Entity class.
  *
  * @param $insertedEntities
  * @return string
  */
 public function execute($insertedEntities)
 {
     $obj = $this->mapper->build([]);
     $this->fillColumns($obj, $insertedEntities);
     $this->callMethods($obj, $insertedEntities);
     $this->mapper->insert($obj);
     return $obj;
 }