|
@@ -448,7 +448,7 @@ discard block |
|
|
block discarded – undo |
|
448
|
448
|
{ |
|
449
|
449
|
$beans = $this->tdbmService->findObjects('person', null, [], 'person.id ASC', [], null, TDBMObject::class); |
|
450
|
450
|
|
|
451
|
|
- $results = $beans->map(function ($item) { |
|
|
451
|
+ $results = $beans->map(function($item) { |
|
452
|
452
|
return $item->getProperty('id', 'person'); |
|
453
|
453
|
})->toArray(); |
|
454
|
454
|
|
|
@@ -457,7 +457,7 @@ discard block |
|
|
block discarded – undo |
|
457
|
457
|
// Same test with page |
|
458
|
458
|
$page = $beans->take(0, 2); |
|
459
|
459
|
|
|
460
|
|
- $results = $page->map(function ($item) { |
|
|
460
|
+ $results = $page->map(function($item) { |
|
461
|
461
|
return $item->getProperty('id', 'person'); |
|
462
|
462
|
})->toArray(); |
|
463
|
463
|
|
|
@@ -818,7 +818,7 @@ discard block |
|
|
block discarded – undo |
|
818
|
818
|
public function testFindObjectsMethodWithoutResultIteratorClass(): void |
|
819
|
819
|
{ |
|
820
|
820
|
$this->expectException(TDBMInvalidArgumentException::class); |
|
821
|
|
- $this->expectExceptionMessageMatches('/^\$resultIteratorClass should be a `' . preg_quote(ResultIterator::class, '/') . '`. `(.*)` provided\.$/'); |
|
|
821
|
+ $this->expectExceptionMessageMatches('/^\$resultIteratorClass should be a `'.preg_quote(ResultIterator::class, '/').'`. `(.*)` provided\.$/'); |
|
822
|
822
|
$tdbmService = new TDBMService(new Configuration('TheCodingMachine\\TDBM\\Test\\Dao\\Bean', 'TheCodingMachine\\TDBM\\Test\\Dao', self::getConnection(), $this->getNamingStrategy(), null, null, new NullLogger())); |
|
823
|
823
|
|
|
824
|
824
|
$tdbmService->findObjects('', null, [], null, [], null, null, self::class); |
|
@@ -827,7 +827,7 @@ discard block |
|
|
block discarded – undo |
|
827
|
827
|
public function testFindObjectsFromSqlMethodWithoutResultIteratorClass(): void |
|
828
|
828
|
{ |
|
829
|
829
|
$this->expectException(TDBMInvalidArgumentException::class); |
|
830
|
|
- $this->expectExceptionMessageMatches('/^\$resultIteratorClass should be a `' . preg_quote(ResultIterator::class, '/') . '`. `(.*)` provided\.$/'); |
|
|
830
|
+ $this->expectExceptionMessageMatches('/^\$resultIteratorClass should be a `'.preg_quote(ResultIterator::class, '/').'`. `(.*)` provided\.$/'); |
|
831
|
831
|
$tdbmService = new TDBMService(new Configuration('TheCodingMachine\\TDBM\\Test\\Dao\\Bean', 'TheCodingMachine\\TDBM\\Test\\Dao', self::getConnection(), $this->getNamingStrategy(), null, null, new NullLogger())); |
|
832
|
832
|
|
|
833
|
833
|
$tdbmService->findObjectsFromSql('', '', null, [], null, null, null, self::class); |
|
@@ -836,7 +836,7 @@ discard block |
|
|
block discarded – undo |
|
836
|
836
|
public function testFindObjectsFromRawSqlMethodWithoutResultIteratorClass(): void |
|
837
|
837
|
{ |
|
838
|
838
|
$this->expectException(TDBMInvalidArgumentException::class); |
|
839
|
|
- $this->expectExceptionMessageMatches('/^\$resultIteratorClass should be a `' . preg_quote(ResultIterator::class, '/') . '`. `(.*)` provided\.$/'); |
|
|
839
|
+ $this->expectExceptionMessageMatches('/^\$resultIteratorClass should be a `'.preg_quote(ResultIterator::class, '/').'`. `(.*)` provided\.$/'); |
|
840
|
840
|
$tdbmService = new TDBMService(new Configuration('TheCodingMachine\\TDBM\\Test\\Dao\\Bean', 'TheCodingMachine\\TDBM\\Test\\Dao', self::getConnection(), $this->getNamingStrategy(), null, null, new NullLogger())); |
|
841
|
841
|
|
|
842
|
842
|
$tdbmService->findObjectsFromRawSql('', '', [], null, null, null, self::class); |