2008-08-16 19:40:59 +00:00
|
|
|
<?php
|
|
|
|
|
2009-01-29 17:00:44 +00:00
|
|
|
namespace Doctrine\ORM\Persisters;
|
|
|
|
|
|
|
|
use Doctrine\ORM\Collection;
|
|
|
|
|
|
|
|
class AbstractCollectionPersister
|
2008-08-16 19:40:59 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
public function recreate(Doctrine_Collection $coll)
|
|
|
|
{
|
|
|
|
if ($coll->getRelation()->isInverseSide()) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
//...
|
|
|
|
}
|
|
|
|
|
|
|
|
public function delete(Doctrine_Collection $coll)
|
|
|
|
{
|
|
|
|
if ($coll->getRelation()->isInverseSide()) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
//...
|
|
|
|
}
|
|
|
|
|
|
|
|
/* collection update actions */
|
|
|
|
|
2009-01-29 17:00:44 +00:00
|
|
|
public function deleteRows(Collection $coll)
|
2008-08-16 19:40:59 +00:00
|
|
|
{
|
2009-01-29 17:00:44 +00:00
|
|
|
//$collection->getDeleteDiff();
|
2008-08-16 19:40:59 +00:00
|
|
|
}
|
|
|
|
|
2009-01-29 17:00:44 +00:00
|
|
|
public function updateRows(Collection $coll)
|
2008-08-16 19:40:59 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2009-01-29 17:00:44 +00:00
|
|
|
public function insertRows(Collection $coll)
|
|
|
|
{
|
|
|
|
//$collection->getInsertDiff();
|
|
|
|
}
|
|
|
|
|
|
|
|
protected function _getDeleteRowSql()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
protected function _getUpdateRowSql()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
protected function _getDeleteRowSql()
|
2008-08-16 19:40:59 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|