Download the PHP package davidkmenta/doctrine-simple-array-types without Composer
On this page you can find all versions of the php package davidkmenta/doctrine-simple-array-types. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download davidkmenta/doctrine-simple-array-types
More information about davidkmenta/doctrine-simple-array-types
Files in davidkmenta/doctrine-simple-array-types
Download davidkmenta/doctrine-simple-array-types
More information about davidkmenta/doctrine-simple-array-types
Files in davidkmenta/doctrine-simple-array-types
Vendor davidkmenta
Package doctrine-simple-array-types
Short Description Extended simple array types for Doctrine
License MIT
Homepage https://github.com/davidkmenta/doctrine-simple-array-types
Package doctrine-simple-array-types
Short Description Extended simple array types for Doctrine
License MIT
Homepage https://github.com/davidkmenta/doctrine-simple-array-types
Please rate this library. Is it a good library?
Informations about the package doctrine-simple-array-types
Doctrine Simple Array Types
A Doctrine field type for simple arrays of integers, floats and strings.
Description
These types mainly solve two common problems:
- _simple_stringarray solves the problem with strings containing a comma symbol. Such strings cannot be persisted in the _simplearray type provided by the Doctrine.
- _simple_integerarray and _simple_floatarray extends the _simplearray type from the Doctrine. These types solve the problem when a persisted integer or float is returned from the database as a string.
Installation
Run the following command:
Examples
To configure Doctrine to use this set of types, you'll need to set up the following in your bootstrap:
Or, if you're using the Symfony, set types in your Doctrine configuration file (eg: doctrine.yml):
Then, in your entities, you may annotate properties by setting the @Column
type to simple_string_array
, simple_integer_array
or simple_float_array
.
All versions of doctrine-simple-array-types with dependencies
PHP Build Version
Package Version
The package davidkmenta/doctrine-simple-array-types contains the following files
Loading the files please wait ....