New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
code refactorings on persister #413
code refactorings on persister #413
Conversation
@@ -86,30 +86,30 @@ public function delete(PersistentCollection $coll) | |||
return; // ignore inverse side | |||
} | |||
|
|||
$sql = $this->_getDeleteSQL($coll); | |||
$this->_conn->executeUpdate($sql, $this->_getDeleteSQLParameters($coll)); | |||
$sql = $this->getDeleteSQL($coll); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing line break
You rock :) |
|
||
foreach ($updateData as $columnName => $value) { | ||
$column = $columnName; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove extra line break
Hi guys :) Anything else pending here ? |
* Check for existance of an element | ||
* | ||
* @param \Doctrine\ORM\PersistentCollection $coll | ||
* @param mixed \Doctrine\ORM\PersistentCollection |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ param mixed \Doctrine\ORM\PersistentCollection ?
this seems wrong
I'm fine to merge this. Anyone else? |
|
||
/** | ||
* @var \Doctrine\ORM\UnitOfWork | ||
*/ | ||
protected $_uow; | ||
protected $uow; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be a BC break for people extending the persisters as they are protected properties
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and the same is true for protected methods
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Persisters are currently unable to be extended anyway. It cannot be classified as a BC break. =)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
then it is fine
Done, Thanks @guilhermeblanco and @stof |
I'm fine with the code. Please rebase. |
Hi @guilhermeblanco, the performance tests are almost the same .. doctrine/master :
My branch :
|
code refactorings on persister
hi
This patch does not add any feature, just small refactorings and code clean up.
It make easier to implement the generation of persisters:
http://www.doctrine-project.org/jira/browse/DDC-1889
Cheers ...