Skip to content

Commit

Permalink
✨ Allow version 1.19.0 of spryker/propel-orm (#17)
Browse files Browse the repository at this point in the history
* Allow version `1.19.0` of `spryker/propel-orm`

* Add phpcs fixes
  • Loading branch information
daniel-rose authored Apr 20, 2023
1 parent 5f053f1 commit 6023790
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/FondOfCodeception/Builder/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,32 @@

use Spryker\Zed\PropelOrm\Business\Builder\QueryBuilder as BaseQueryBuilder;
use Spryker\Zed\PropelOrm\Business\PropelOrmBusinessFactory;
use Spryker\Zed\PropelOrm\PropelOrmConfig;

class QueryBuilder extends BaseQueryBuilder
{
/**
* @return \Spryker\Zed\Kernel\AbstractBundleConfig
*/
public function getConfig()
{
if (
!class_exists('Spryker\Zed\PropelOrm\PropelOrmConfig')
) {
return parent::getConfig();
}

return new class extends PropelOrmConfig {
/**
* @return bool
*/
public function isBooleanCastingEnabled(): bool
{
return false;
}
};
}

/**
* @return \Spryker\Zed\Kernel\Business\BusinessFactoryInterface
*/
Expand Down

0 comments on commit 6023790

Please sign in to comment.