Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
LeanMapper Workflow
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Mpro
LeanMapper Workflow
Commits
4486b466
Commit
4486b466
authored
May 14, 2014
by
Tomas Lang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EntityFactory: remove dependency on collections
parent
e3485f86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
EntityFactory.php
src/LeanMapperWorkflow/EntityFactory.php
+2
-4
No files found.
src/LeanMapperWorkflow/EntityFactory.php
View file @
4486b466
...
...
@@ -16,11 +16,9 @@ class EntityFactory implements \LeanMapper\IEntityFactory
/*
* @inheritdoc
*/
public
function
createCollection
(
array
$entities
,
$class
=
NULL
)
public
function
createCollection
(
array
$entities
)
{
if
(
!
(
class_exists
(
$class
)
&&
is_subclass_of
(
$class
,
'FakturacniSystem\\Collections\\Collection'
)))
$class
=
'FakturacniSystem\\Collections\\Collection'
;
return
new
$class
(
$entities
);
return
$entities
;
}
}
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