Corrected method names; the interface already used SQL, the files still used Sql in method names
This commit is contained in:
parent
8d52967fcd
commit
20c6259fa3
@ -36,7 +36,7 @@ class ManyToManyPersister extends AbstractCollectionPersister
|
|||||||
*
|
*
|
||||||
* @override
|
* @override
|
||||||
*/
|
*/
|
||||||
protected function _getDeleteRowSql(PersistentCollection $coll)
|
protected function _getDeleteRowSQL(PersistentCollection $coll)
|
||||||
{
|
{
|
||||||
$mapping = $coll->getMapping();
|
$mapping = $coll->getMapping();
|
||||||
$joinTable = $mapping->joinTable;
|
$joinTable = $mapping->joinTable;
|
||||||
@ -51,7 +51,7 @@ class ManyToManyPersister extends AbstractCollectionPersister
|
|||||||
* @internal Order of the parameters must be the same as the order of the columns in
|
* @internal Order of the parameters must be the same as the order of the columns in
|
||||||
* _getDeleteRowSql.
|
* _getDeleteRowSql.
|
||||||
*/
|
*/
|
||||||
protected function _getDeleteRowSqlParameters(PersistentCollection $coll, $element)
|
protected function _getDeleteRowSQLParameters(PersistentCollection $coll, $element)
|
||||||
{
|
{
|
||||||
return $this->_collectJoinTableColumnParameters($coll, $element);
|
return $this->_collectJoinTableColumnParameters($coll, $element);
|
||||||
}
|
}
|
||||||
@ -61,7 +61,7 @@ class ManyToManyPersister extends AbstractCollectionPersister
|
|||||||
*
|
*
|
||||||
* @override
|
* @override
|
||||||
*/
|
*/
|
||||||
protected function _getUpdateRowSql(PersistentCollection $coll)
|
protected function _getUpdateRowSQL(PersistentCollection $coll)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -71,7 +71,7 @@ class ManyToManyPersister extends AbstractCollectionPersister
|
|||||||
* @internal Order of the parameters must be the same as the order of the columns in
|
* @internal Order of the parameters must be the same as the order of the columns in
|
||||||
* _getInsertRowSql.
|
* _getInsertRowSql.
|
||||||
*/
|
*/
|
||||||
protected function _getInsertRowSql(PersistentCollection $coll)
|
protected function _getInsertRowSQL(PersistentCollection $coll)
|
||||||
{
|
{
|
||||||
$mapping = $coll->getMapping();
|
$mapping = $coll->getMapping();
|
||||||
$joinTable = $mapping->joinTable;
|
$joinTable = $mapping->joinTable;
|
||||||
@ -87,7 +87,7 @@ class ManyToManyPersister extends AbstractCollectionPersister
|
|||||||
* @internal Order of the parameters must be the same as the order of the columns in
|
* @internal Order of the parameters must be the same as the order of the columns in
|
||||||
* _getInsertRowSql.
|
* _getInsertRowSql.
|
||||||
*/
|
*/
|
||||||
protected function _getInsertRowSqlParameters(PersistentCollection $coll, $element)
|
protected function _getInsertRowSQLParameters(PersistentCollection $coll, $element)
|
||||||
{
|
{
|
||||||
return $this->_collectJoinTableColumnParameters($coll, $element);
|
return $this->_collectJoinTableColumnParameters($coll, $element);
|
||||||
}
|
}
|
||||||
@ -138,7 +138,7 @@ class ManyToManyPersister extends AbstractCollectionPersister
|
|||||||
*
|
*
|
||||||
* @override
|
* @override
|
||||||
*/
|
*/
|
||||||
protected function _getDeleteSql(PersistentCollection $coll)
|
protected function _getDeleteSQL(PersistentCollection $coll)
|
||||||
{
|
{
|
||||||
$mapping = $coll->getMapping();
|
$mapping = $coll->getMapping();
|
||||||
$joinTable = $mapping->joinTable;
|
$joinTable = $mapping->joinTable;
|
||||||
@ -157,7 +157,7 @@ class ManyToManyPersister extends AbstractCollectionPersister
|
|||||||
* @internal Order of the parameters must be the same as the order of the columns in
|
* @internal Order of the parameters must be the same as the order of the columns in
|
||||||
* _getDeleteSql.
|
* _getDeleteSql.
|
||||||
*/
|
*/
|
||||||
protected function _getDeleteSqlParameters(PersistentCollection $coll)
|
protected function _getDeleteSQLParameters(PersistentCollection $coll)
|
||||||
{
|
{
|
||||||
$params = array();
|
$params = array();
|
||||||
$mapping = $coll->getMapping();
|
$mapping = $coll->getMapping();
|
||||||
|
@ -44,7 +44,7 @@ class OneToManyPersister extends AbstractCollectionPersister
|
|||||||
* @return string
|
* @return string
|
||||||
* @override
|
* @override
|
||||||
*/
|
*/
|
||||||
protected function _getDeleteRowSql(PersistentCollection $coll)
|
protected function _getDeleteRowSQL(PersistentCollection $coll)
|
||||||
{
|
{
|
||||||
$mapping = $coll->getMapping();
|
$mapping = $coll->getMapping();
|
||||||
$targetClass = $this->_em->getClassMetadata($mapping->getTargetEntityName());
|
$targetClass = $this->_em->getClassMetadata($mapping->getTargetEntityName());
|
||||||
@ -67,13 +67,13 @@ class OneToManyPersister extends AbstractCollectionPersister
|
|||||||
return array("UPDATE $table SET $setClause WHERE $whereClause", $this->_uow->getEntityIdentifier($element));
|
return array("UPDATE $table SET $setClause WHERE $whereClause", $this->_uow->getEntityIdentifier($element));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function _getInsertRowSql(PersistentCollection $coll)
|
protected function _getInsertRowSQL(PersistentCollection $coll)
|
||||||
{
|
{
|
||||||
return "UPDATE xxx SET foreign_key = yyy WHERE foreign_key = zzz";
|
return "UPDATE xxx SET foreign_key = yyy WHERE foreign_key = zzz";
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Not used for OneToManyPersister */
|
/* Not used for OneToManyPersister */
|
||||||
protected function _getUpdateRowSql(PersistentCollection $coll)
|
protected function _getUpdateRowSQL(PersistentCollection $coll)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -83,7 +83,7 @@ class OneToManyPersister extends AbstractCollectionPersister
|
|||||||
*
|
*
|
||||||
* @param PersistentCollection $coll
|
* @param PersistentCollection $coll
|
||||||
*/
|
*/
|
||||||
protected function _getDeleteSql(PersistentCollection $coll)
|
protected function _getDeleteSQL(PersistentCollection $coll)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -94,7 +94,7 @@ class OneToManyPersister extends AbstractCollectionPersister
|
|||||||
*
|
*
|
||||||
* @param PersistentCollection $coll
|
* @param PersistentCollection $coll
|
||||||
*/
|
*/
|
||||||
protected function _getDeleteSqlParameters(PersistentCollection $coll)
|
protected function _getDeleteSQLParameters(PersistentCollection $coll)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -104,7 +104,7 @@ class OneToManyPersister extends AbstractCollectionPersister
|
|||||||
* @param PersistentCollection $coll
|
* @param PersistentCollection $coll
|
||||||
* @param mixed $element
|
* @param mixed $element
|
||||||
*/
|
*/
|
||||||
protected function _getInsertRowSqlParameters(PersistentCollection $coll, $element)
|
protected function _getInsertRowSQLParameters(PersistentCollection $coll, $element)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -114,6 +114,6 @@ class OneToManyPersister extends AbstractCollectionPersister
|
|||||||
* @param PersistentCollection $coll
|
* @param PersistentCollection $coll
|
||||||
* @param mixed $element
|
* @param mixed $element
|
||||||
*/
|
*/
|
||||||
protected function _getDeleteRowSqlParameters(PersistentCollection $coll, $element)
|
protected function _getDeleteRowSQLParameters(PersistentCollection $coll, $element)
|
||||||
{}
|
{}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user