Comments (5)
I tried both with the current codebase (1.9/dev), but the generated model is in both cases exactly the same as it doesn't contain any constraint information, and I don't see any differences in the migration generated too, whether or not you use quotes. Both generate
'lat' => array('constraint' => '10,8', 'type' => 'decimal'),
'lng' => array('constraint' => '11,8', 'type' => 'decimal'),
I checked the code for recent changes, but this bit hasn't changed since 2011.
from oil.
I tested this thoroughly and it turned out to be a console issue and not a Fuel issue.
I use Windows machine for my development. When I ran this command in PowerShell it resulted in the error I described. But when I tried it in Cmd and in GitBash console, it worked perfectly.
I am closing this as an non-issue.
from oil.
Ok, so it is Powershell that did some "pre-parsing" of the parameters. It might be worth mentioning that in the docs, in case someone else bumps into it.
from oil.
I just found out that in Powershell commas make arrays (http://www.vistax64.com/powershell/236858-commas-powershell.html)
In the docs, on Oil introduction page, there could be a note for Windows users with recommended console utility (Git Bash - https://git-scm.com/downloads if they use git, which they probably do) or at least a note to avoid Powershell.
from oil.
Added a note about this, and your tip, to the oil generate
docs page.
from oil.
Related Issues (20)
- Typo in applied Bootstrap CSS class name on textareas
- Auth config not loaded HOT 1
- Want a template system for oil generate commands
- Oil admin generate generating wrong links HOT 3
- "oil generate admin/orm" generates an additional wrong template file HOT 3
- It's nice to generate its test code scaffolding when run oil generate something. HOT 4
- Features missing from the "fromdb" task HOT 2
- oil generate test HOT 3
- Parse error in driver package scaffolding HOT 3
- "fromdb" task HOT 3
- OIL scaffolding not working on php 7.1.3 HOT 2
- oil refine fromdb:scaffold --all HOT 3
- Oil generates Views that use Input::post() HOT 2
- 'Unique' misspelled in Generate_Migrations_Actions HOT 3
- Module support for Scaffolding and Admin
- Pagination error when generated from `oil generate admin` HOT 4
- Missing code to render pagination on generated view from oil generate admin command
- Broken link for oil cell HOT 2
- Console PHP7.4 error fix
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 oil.