2008-08-31 18:27:16 +00:00
|
|
|
<?php
|
|
|
|
|
2009-01-22 19:38:10 +00:00
|
|
|
namespace Doctrine\ORM\Id;
|
|
|
|
|
2009-03-30 19:43:05 +00:00
|
|
|
use Doctrine\ORM\EntityManager;
|
|
|
|
|
2008-09-07 13:48:40 +00:00
|
|
|
/**
|
2010-03-05 16:35:00 +00:00
|
|
|
* Id generator that uses a single-row database table and a hi/lo algorithm.
|
2008-09-07 13:48:40 +00:00
|
|
|
*
|
|
|
|
* @since 2.0
|
2009-05-24 10:38:37 +00:00
|
|
|
* @todo Implementation
|
2008-09-07 13:48:40 +00:00
|
|
|
*/
|
2009-01-22 19:38:10 +00:00
|
|
|
class TableGenerator extends AbstractIdGenerator
|
2008-09-07 13:48:40 +00:00
|
|
|
{
|
2009-03-30 19:43:05 +00:00
|
|
|
public function generate(EntityManager $em, $entity)
|
2008-09-07 13:48:40 +00:00
|
|
|
{
|
2010-03-05 16:35:00 +00:00
|
|
|
throw new \BadMethodCallException(__CLASS__."::".__FUNCTION__." not implemented.");
|
2008-09-07 13:48:40 +00:00
|
|
|
}
|
2009-02-20 05:46:20 +00:00
|
|
|
}
|