Comments (12)
hi, what OS and PHP version are you using?
from cphalcon.
centos PHP 5.3.8 (cli)
from cphalcon.
Do the model support separation of read and write?
from cphalcon.
This is odd, 0.4.4 passed that test more than two months ago, check the unit-test and the build log:
cphalcon/unit-tests/ModelsTest.php
Line 162 in 129b8e7
http://travis-ci.org/#!/phalcon/cphalcon/builds/1702635
from cphalcon.
I can get data from db,but it thow Exception when save data
from cphalcon.
Anyway to post the code?
from cphalcon.
Controller:
username = 'test'; $user->truename = 'test'; $user->usertype = 1; $rs = $user->findFirst(); $user->save(); print_r($rs); exit; } ``` } Model: setSource("systemuser"); } }from cphalcon.
Can you write the findFirst as Users::findFirst() ?
from cphalcon.
I am sorry, i use Users::findFirst(),but the result is also wrong.
from cphalcon.
There seems to be a problem with this, Phalcon is calling the method initialize just once, due to this the second model instantiated does not have the new source.
Could you try this:
from cphalcon.
yes,it's ok.The framwork is very nice.But i don't know how to use some functions,For example the Db_Pool
from cphalcon.
Here's the docs for Db_Pool: http://docs.phalconphp.com/en/latest/reference/db.html#connection-pooling
from cphalcon.
Related Issues (20)
- [BUG]: Model->toArray() calls get~() functions even if they are static HOT 6
- [BUG]: Not able to install phalcon for PHP 8.2.12 HOT 1
- [BUG]: volt upper filter does not work on special local characters HOT 5
- [BUG]: using skipAttributes method causes column map load incorrectly in inherited entity HOT 1
- [BUG]: Logger stream with php://stdout is stuck when the output in the same file
- [BUG]: \Phalcon\Cli\Router must be compatible with \Phalcon\Cli\RouterInterface HOT 1
- [NFR]: Add precompiled binaries for Linux and macOS ARM64
- [NFR]: Resetting query filters for query builder HOT 1
- [BUG]: Router parts cannot be unset, if matches parts are optional
- [BUG]: IncludedMaximum & IncludedMinimum behavior inverted for StringLength, Min, Max validation HOT 1
- Broken link https://phalcon.io/en-us/download/windows [NFR]: HOT 1
- [BUG]: Model Validation Leaks Memory HOT 5
- [BUG]: Form with field that is not part of the Model raised deprecated warning on bind() HOT 2
- [NFR]: ORM WITH JSON_EXTRACt HOT 1
- [BUG]: phalcon devtools not working HOT 3
- [NFR]: Assets which respect the base static URI from `\Phalcon\Mvc\Url`
- [BUG]: Phalcon\Support classes leak memory HOT 6
- [BUG]: "SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens" produced when you use the same named binded parameter more than once in query conditions HOT 4
- [DOC] - Remove dead links in CONTRIBUTING.md
- [NFR]: Implement autocompletion support for modern IDE HOT 2
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 cphalcon.