Skip to content

Commit

Permalink
Made Entity Manager factory compatible with PHP 5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
benatespina committed Jul 29, 2016
1 parent 23bc64c commit 28e5f8c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,12 @@ class EntityManagerFactory
*
* @return EntityManager
*/
public function build($aConnection, array $mappingsPaths = [__DIR__ . '/Mapping'], $isDevMode = true)
public function build($aConnection, array $mappingsPaths = [], $isDevMode = true)
{
if (empty($mappingsPaths)) {
$mappingsPaths = [__DIR__ . '/Mapping'];
}

Type::addType('user_id', UserIdType::class);
Type::addType('user_roles', UserRolesType::class);

Expand Down

0 comments on commit 28e5f8c

Please sign in to comment.