opis / orm Goto Github PK
View Code? Open in Web Editor NEWSimple, productive, and easy to learn
Home Page: https://opis.io/orm
License: Apache License 2.0
Simple, productive, and easy to learn
Home Page: https://opis.io/orm
License: Apache License 2.0
Hi,
love your database libraries. Unfortunately I cannot do a Pull request.
I have a few issues to report which you might be interested in:
Issue 1:
Opis\ORM\Core\DataMapper->setColumn()
When calling the function with the same value as already set previously I expect $orm->wasModified() to return false not true.
My "dirty fix" looks like that:
public function setColumn(string $name, $value)
{
.....
if (isset($this->rawColumns[$name])){
if($this->rawColumns[$name] == $value){
return;
}
}
$this->modified[$name] = 1;
unset($this->columns[$name]);
$this->rawColumns[$name] = $value;
}
Issue 2:
some parts of the IDE auto completion do not work especially when querying from the orm object:
(Using netbeans 12.2)
$orm->query(test::CLASS)-> this works for most cases, get() does not work.
$orm->query(test::CLASS)->withSoftDeleted(true)-> limited only, no get() etc.
$orm->query(test::CLASS)->where(...)->like(...)-> not working at all
I found out changing some traits to public instead of protected does the thing. Don´t know if this is a change you want to do or not.
If nothing of this is in your interest, just close the issue.
Br
Hello
I am looking for an ORM to use.
One of my requirements would be migrations.
Does Opis handle changes to schemas?
I mean, my concept of migration would be modifying schema without logging changes like phinx does. I have other methods to do that.
Thank you
Best regards
jarodium
I am wondering if Opis ORM or DBAL provides a way to debug the query executed like Eloquent does, like toSql()
method or listen on query event
Hello;
I have 3 entities (tables):
I want to list all assets for specific manufacturer using filters in asset entity.
How to do it?
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.