Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
57df018c
Commit
57df018c
authored
Feb 19, 2008
by
jwage
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merged r3834 to 0.9 and trunk. Fixed conservative model loading to actually be conservative.
parent
a8c5542f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
Doctrine.php
lib/Doctrine.php
+10
-1
No files found.
lib/Doctrine.php
View file @
57df018c
...
@@ -689,7 +689,14 @@ final class Doctrine
...
@@ -689,7 +689,14 @@ final class Doctrine
}
}
}
}
return
self
::
filterInvalidModels
(
$loadedModels
);
// We do not want to filter invalid models when using conservative model loading
// The filtering requires that the class be loaded and inflected in order to determine if it is
// a valid class.
if
(
$manager
->
getAttribute
(
Doctrine
::
ATTR_MODEL_LOADING
)
==
Doctrine
::
MODEL_LOADING_CONSERVATIVE
)
{
return
$loadedModels
;
}
else
{
return
self
::
filterInvalidModels
(
$loadedModels
);
}
}
}
/**
/**
...
@@ -714,6 +721,7 @@ final class Doctrine
...
@@ -714,6 +721,7 @@ final class Doctrine
* filterInvalidModels
* filterInvalidModels
*
*
* Filter through an array of classes and return all the classes that are valid models
* Filter through an array of classes and return all the classes that are valid models
* This will inflect the class, causing it to be loaded in to memory.
*
*
* @param classes Array of classes to filter through, otherwise uses get_declared_classes()
* @param classes Array of classes to filter through, otherwise uses get_declared_classes()
* @return array $loadedModels
* @return array $loadedModels
...
@@ -735,6 +743,7 @@ final class Doctrine
...
@@ -735,6 +743,7 @@ final class Doctrine
* isValidModelClass
* isValidModelClass
*
*
* Checks if what is passed is a valid Doctrine_Record
* Checks if what is passed is a valid Doctrine_Record
* Will load class in to memory in order to inflect it and find out information about the class
*
*
* @param mixed $class Can be a string named after the class, an instance of the class, or an instance of the class reflected
* @param mixed $class Can be a string named after the class, an instance of the class, or an instance of the class reflected
* @return boolean
* @return boolean
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment