propelorm/Propel — Issue #267: PHP5ObjectBuilder fails to cast generated primary keys properly for native autoincrement (ie postgres) primary keys
Author: apinstein
Created: 2012-01-24 21:25:26+00:00
State: open

This bug isn't exposed unless using PHP 5.3. There appears to have been a change in PDOStatement::fetch() where the result from a "select nextval(...)" for postgres sequences is now returned as a string instead of an integer.

This exposed a bug in the assignment of generated ID's in the BaseObject where a value is assigned to $this->{$primaryKey} without a cast.