fix
This commit is contained in:
@@ -1,44 +1,44 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Bx\Null\Factory;
|
||||
namespace Bx\Nullable\Factory;
|
||||
|
||||
|
||||
use Bx\Null\Collection\NullCollection;
|
||||
use Bx\Null\Entity\NullEntity;
|
||||
use Bx\Null\ORM\NullTable;
|
||||
use Bx\Nullable\Collection\NullableCollection;
|
||||
use Bx\Nullable\Entity\NullableEntity;
|
||||
use Bx\Nullable\ORM\NullableTable;
|
||||
use Wt\Core\Factory\AFactory;
|
||||
use Wt\Core\Factory\AORMFactory;
|
||||
|
||||
class NullFactory extends AORMFactory
|
||||
class NullableFactory extends AORMFactory
|
||||
{
|
||||
|
||||
/**
|
||||
* @return string|NullTable
|
||||
* @return string|NullableTable
|
||||
*/
|
||||
protected function __getDataManagerClass()
|
||||
{
|
||||
return NullTable::class;
|
||||
return NullableTable::class;
|
||||
}
|
||||
|
||||
public function __getEntityClass()
|
||||
{
|
||||
return NullEntity::class;
|
||||
return NullableEntity::class;
|
||||
}
|
||||
|
||||
public function __getCachePrefix()
|
||||
{
|
||||
return 'bx_null';
|
||||
return 'bx_nullable';
|
||||
}
|
||||
|
||||
public function __getCollectionClass()
|
||||
{
|
||||
return NullCollection::class;
|
||||
return NullableCollection::class;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $id
|
||||
* @return NullEntity
|
||||
* @return NullableEntity
|
||||
*/
|
||||
public function getEntityById($id)
|
||||
{
|
||||
@@ -51,7 +51,7 @@ class NullFactory extends AORMFactory
|
||||
* @param array $select
|
||||
* @param null $limit
|
||||
* @param null $offset
|
||||
* @return NullCollection|NullEntity[]
|
||||
* @return NullableCollection|NullableEntity[]
|
||||
*/
|
||||
public function getCollection($filter = [], $order = [], $select = [], $limit = null, $offset = null)
|
||||
{
|
||||
@@ -60,7 +60,7 @@ class NullFactory extends AORMFactory
|
||||
|
||||
/**
|
||||
* @param array $arIds
|
||||
* @return NullCollection|NullEntity[]
|
||||
* @return NullableCollection|NullableEntity[]
|
||||
*/
|
||||
public function getEntityByIds(array $arIds)
|
||||
{
|
||||
@@ -68,7 +68,7 @@ class NullFactory extends AORMFactory
|
||||
}
|
||||
|
||||
/**
|
||||
* @return NullTable
|
||||
* @return NullableTable
|
||||
*/
|
||||
public function getDataManager()
|
||||
{
|
||||
Reference in New Issue
Block a user