Removed support for experimental C extension. Will be re-examined for 3.0.
This commit is contained in:
parent
3630e06b84
commit
34262aeae1
@ -239,29 +239,6 @@ class Configuration extends \Doctrine\DBAL\Configuration
|
|||||||
$this->_attributes['metadataCacheImpl'] = $cacheImpl;
|
$this->_attributes['metadataCacheImpl'] = $cacheImpl;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets a boolean flag that indicates whether Doctrine should make use of the
|
|
||||||
* C extension.
|
|
||||||
*
|
|
||||||
* @return boolean TRUE if Doctrine is configured to use the C extension, FALSE otherwise.
|
|
||||||
*/
|
|
||||||
public function getUseCExtension()
|
|
||||||
{
|
|
||||||
return isset($this->_attributes['useCExtension']) ?
|
|
||||||
$this->_attributes['useCExtension'] : false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets a boolean flag that indicates whether Doctrine should make use of the
|
|
||||||
* C extension.
|
|
||||||
*
|
|
||||||
* @param boolean $boolean Whether to make use of the C extension or not.
|
|
||||||
*/
|
|
||||||
public function setUseCExtension($boolean)
|
|
||||||
{
|
|
||||||
$this->_attributes['useCExtension'] = $boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds a named DQL query to the configuration.
|
* Adds a named DQL query to the configuration.
|
||||||
*
|
*
|
||||||
|
@ -201,15 +201,6 @@ class UnitOfWork implements PropertyChangedListener
|
|||||||
*/
|
*/
|
||||||
private $collectionPersisters = array();
|
private $collectionPersisters = array();
|
||||||
|
|
||||||
/**
|
|
||||||
* EXPERIMENTAL:
|
|
||||||
* Flag for whether or not to make use of the C extension which is an experimental
|
|
||||||
* library that aims to improve the performance of some critical code sections.
|
|
||||||
*
|
|
||||||
* @var boolean
|
|
||||||
*/
|
|
||||||
private $useCExtension = false;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The EventManager used for dispatching events.
|
* The EventManager used for dispatching events.
|
||||||
*
|
*
|
||||||
@ -235,7 +226,6 @@ class UnitOfWork implements PropertyChangedListener
|
|||||||
{
|
{
|
||||||
$this->em = $em;
|
$this->em = $em;
|
||||||
$this->evm = $em->getEventManager();
|
$this->evm = $em->getEventManager();
|
||||||
$this->useCExtension = $this->em->getConfiguration()->getUseCExtension();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1866,15 +1856,11 @@ class UnitOfWork implements PropertyChangedListener
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($overrideLocalValues) {
|
if ($overrideLocalValues) {
|
||||||
if ($this->useCExtension) {
|
|
||||||
doctrine_populate_data($entity, $data);
|
|
||||||
} else {
|
|
||||||
foreach ($data as $field => $value) {
|
foreach ($data as $field => $value) {
|
||||||
if (isset($class->fieldMappings[$field])) {
|
if (isset($class->fieldMappings[$field])) {
|
||||||
$class->reflFields[$field]->setValue($entity, $value);
|
$class->reflFields[$field]->setValue($entity, $value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Properly initialize any unfetched associations, if partial objects are not allowed.
|
// Properly initialize any unfetched associations, if partial objects are not allowed.
|
||||||
if ( ! isset($hints[Query::HINT_FORCE_PARTIAL_LOAD])) {
|
if ( ! isset($hints[Query::HINT_FORCE_PARTIAL_LOAD])) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user