Interestingly, the following code works without trouble: public function saveSubscription(SubscriptionInterface $subscription, SignupInterface $signup, $flush = true) { $handle = \fopen('/home/lwprods/new/errors', 'w'); // $this->em->persist($subscription); // $this->em->persist($signup); // // if ($flush) // { // $this->em->flush(); // } $link = \mysql_connect('localhost', 'user', 'password'); if (!$link) { \fwrite($handle, 'Unable to connect: ' . \mysql_error()); \fclose($handle); die; } $dbSelected = \mysql_select_db('some_database', $link); if (!$dbSelected) { \fwrite($handle, 'Unable to select database: ' . \mysql_error()); \fclose($handle); die; } $query = \sprintf("INSERT INTO signup VALUES('%s', '%s')", \mysql_escape_string($signup->getId()), \mysql_escape_string($signup->getSubscriptionId())); $result = \mysql_query($query, $link); if (!$result) { \fwrite($handle, 'Invalid query: ' . \mysql_error()); \fclose($handle); die; } \mysql_free_result($result); \fclose($handle); }
However, it fails in both Doctrine2 and PDO without an error. I don't get it. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en