You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$c = new Channel();
//set all properties of Channel object
$c->setDescription('xxxxx');
$c->save();
However when I try:
$q = new ChannelQuery();
$firstChannel = $q->findPK('be8d37ca-db94-4070-88e7-4a6690410a2e');
$video=new Video();
//set all properties of Video object
$video->setChannelId($firstChannel);
$video->save();
I do get SQL errors, because the channelId is not properly quoted:
However $video->setChannelId($firstChannel->getId());
works fine.
Propel is installed from composer ( "propel/propel": "~2.0@dev", ), engine is PostgreSQL and PHP 5.6.
Just to be thorough I even tried changing type to binary in all UUID columns to no avail.
The text was updated successfully, but these errors were encountered:
I am trying to use PostgreSQL UUID column type as primary and foreign key. My schema looks like this:
Creating and saving objects works fine:
However when I try:
I do get SQL errors, because the channelId is not properly quoted:
However
$video->setChannelId($firstChannel->getId());
works fine.
Propel is installed from composer ( "propel/propel": "~2.0@dev", ), engine is PostgreSQL and PHP 5.6.
Just to be thorough I even tried changing type to binary in all UUID columns to no avail.
The text was updated successfully, but these errors were encountered: