Hi all,
I'm new to Phalcon, I read the doc but still can't figure this out.
What would be the best way to save large amount of rows in one insert ?
II tried to save a single row and it's working fine.
Example:
php $phql = "INSERT INTO Person (first_name, last_name, middle_name) VALUES (:first_name:, :last_name:, :middle_name:)"; $status = $this->modelsManager->executeQuery($phql, array( 'first_name' => $friend['first_name'], 'last_name' => $friend['last_name'], 'middle_name' => $friend['last_name'] ));
Is there a way to save a multidimentional array using this method 'executeQuery' ?
Example:
What if my variable $friends is something like
php $friends = array ($friend, $friend, $friend);?>
Thanks.