josegonzalez / cakephp-entity Goto Github PK
View Code? Open in Web Editor NEWThis project forked from kanshin/cakeentity
CakePHP2: Unmaintained Table/Entity wrapper around old Model system
License: MIT License
This project forked from kanshin/cakeentity
CakePHP2: Unmaintained Table/Entity wrapper around old Model system
License: MIT License
Hello there,
I see in the repo that there were many releases (3.0.0 being the latest) since 1.0.0 and I was wondering if packagist could be updated accordingly. I would like to freeze the version of the library to a specific one and not be tied to a dev-master branch just in case of anything changes in the future.
Is there any chance this could be done??
hi
in readme say requirement to php 5.3 but short array and JsonSerializable as of php 5.4.
if your target is 5.3 , i change and downgrade to 5.3 , send pull request?
Hello!
The headline on this repo home page says:
CakePHP2: Deprecated Table/Entity wrapper around old Model system
Is it "deprecated" because something else for Cake 2 has replaced this? Or because Cake3 is out?
Although the documentation says by default the find still returns array,
When I extended my models from Table, it's by default returning entities.
The only problem with this is that:
When I try a find('threaded') it return erros:
Warning (4096): Argument 1 passed to Hash::get() must be of the type array, object given, called in /var/www/html/sabhio/lib/Cake/Utility/Hash.php on line 982 and defined [CORE/Cake/Utility/Hash.php, line 43]
Warning (4096): Argument 1 passed to Hash::get() must be of the type array, object given, called in /var/www/html/sabhio/lib/Cake/Utility/Hash.php on line 983 and defined [CORE/Cake/Utility/Hash.php, line 43]
Warning (2): array_merge() [function.array-merge]: Argument #1 is not an array [CORE/Cake/Utility/Hash.php, line 988]
In Table::convertToEntity there is a a check on a set id field
if (is_null($data) || empty($data[$this->alias]['id'])) {
My sight in this plugin isn't deep enough to understand if this limitation is needed, but if we change this to
if (is_null($data) || empty($data[$this->alias][$this->primaryKey])) {
this works in first short tests and we don't have to change our models to use id fields
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.