l3pp4rd/DoctrineExtensions — Issue #273: [Tree] using non integer primary key does not work
Author: ausi
Created: 2012-02-23 14:34:06+00:00
State: open

using a string instead of an integer for the primary key does not work.

Entity:

id = 'myStringId01'; // just as example of course
}

...

}

persisting new entity:

$category = new Category();
$em->persist($category);
$em->flush();

*Error:* Doctrine\ORM\Query\QueryException: [Semantical Error] line 0, col 73 near 'myStringId01,': Error: 'myStringId01' is not defined.