tflori/orm

just another orm...

View the Project on GitHub tflori/orm

Build Status Test Coverage Maintainability Latest Stable Version Total Downloads

» API Reference » ORM\Dbal\Type

ORM\Dbal\Type

Table of Contents

Abstract

Implements: ORM\Dbal\TypeInterface

Base class for data types

Methods

ORM\Dbal\Type::factory

public static function factory(
    \ORM\Dbal\Dbal $dbal, 
    array $columnDefinition, 
): static
Returns a new Type object

This method is only for types covered by mapping. Use fromDefinition instead for custom types.

Static   This method is static.
Returns static  
Parameters
Parameter Type Description
$dbal ORM\Dbal\Dbal  
$columnDefinition array  

ORM\Dbal\Type::factory

↑ top


ORM\Dbal\Type::fits

public static function fits(array $columnDefinition): bool
Check if this type fits to $columnDefinition
Static   This method is static.
Returns bool  
Parameters
Parameter Type Description
$columnDefinition array  

ORM\Dbal\Type::fits

↑ top