Comments (7)
string = text, varchar,varchar2, char etc.
date = date, datetime
int = any numeric value, int, smallint, longint, float, numeric, ?timestamp?
boolean = bool, tinyint(1), int, enum etc.
from data.
This list can be useful too: http://php.net/manual/en/mongo.types.php
from data.
so there can also be these types:
- array - array, list (mostly for NoSQL, but SQL can store them with
json_encode
orserialize
for example) - binary - BinaryData for NoSQL, BLOB for SQL
from data.
After thinking - the type conversion will be handled by Persistence SQL just when the data comes off the iterator before it's passed into $model->data
- When query is being built also build a "transformation" consisting of [field=>fx, ..] array.
- When results are fetched, pass them through transformator
- Allow fields to define custom transformators
from data.
if we use "int" we should use "bool" btw.
from data.
definition of having a type - if field has a type then persistence will normalize it.
I suppose if we add 'array' into allowed typess, then MySQL will have to serialize it.
from data.
Fully fixed in #130
from data.
Related Issues (20)
- HasOneSql is not merging imported field seed properly HOT 10
- Allow to get target model after deep traversal HOT 3
- Assert data are unchanged during save HOT 11
- Storing boolean value in a non-defined/string field HOT 7
- ContainsXxx throw Exception if stored value != null HOT 3
- atk4_money cannot be set to zero
- AggregateModel with referenced field in expression throwing error HOT 2
- Why getReference does not work on entity? HOT 1
- Migrator to set foreign keys HOT 2
- Default UserAction 'delete' should have a confirmation message HOT 4
- Model::validateEntityScope() should not fetch/compute any data HOT 2
- Subquery with LIMIT in IN clause should be supported HOT 12
- Does DSQL join support joining from subquery? HOT 1
- Fix all typos HOT 4
- Drop `Model\UserAction::$modifier` property
- Model::set should handle duplicate actual
- Model::dirty not available in Model::HOOK_AFTER_SAVE spot HOT 1
- Monitor if the latest deps are supported in develop using CI
- Bad float/integer input is silently accepted HOT 10
- Set fields to dirty when they are changed within hooks within a model HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from data.