Check if values are set in Send\Db\Sql\Insert
Fixes code for..
$columns = array('title', 'description');
$values = array(
$insert = $sql->insert()->columns($columns);
$stmt = $sql->prepareStatementForSqlObject($insert);
Issue here: https://github.com/zendframework/zf2/issues/3847
Fix prepared statement notices
@Mech7 Thank you for your pull request. Could you please also add a unit test that demonstrates the new behavior and therewith preventing regressions? Thanks!
=> Assigning to @ralphschindler cause he knows every little detail about zend\db.
Merge branch 'master' of https://github.com/zendframework/zf2
Ok I will try I am not an expert at unit testing, I cannot replicate it with the mock object that the test is currently using.
@Mech7 That's no problem at all! If you feel you need help, please feel free to join us on IRC on #zftalk.dev, alternatively you could send a mail to the cr team ( zf-crteam [at] zend ) for some assistance.
Add unit test for prepareStatementForSqlObject
@Freeaqingme Thanks but i figured it out I think :) Hope this is ok.. you can see it will throw some notices when running the test without the fix.