For more information see the offical website.
unimapper / unimapper Goto Github PK
View Code? Open in Web Editor NEWAn adapter-based and storage independent ORM/ODM for PHP
Home Page: http://unimapper.github.io
License: MIT License
An adapter-based and storage independent ORM/ODM for PHP
Home Page: http://unimapper.github.io
License: MIT License
For more information see the offical website.
Proposal
Do not validate values in _set if value is null.
$query->findAll()->cached(true, [ options ])->execute();
beforeSave()
afterSave()
beforeDelete()
afterDelete()
/**
* @property Order[] $order m:assoc(M:N=joinKey|joinResource|referenceKey)
*/
class User extends \UniMapper\Entity {}
class Order extends \UniMapper\Entity {}
/**
* @property Item[] $items m:assoc(1:N=targetKey)
*/
class Order extends \UniMapper\Entity {}
class Item extends \UniMapper\Entity {}
Default masks:
Add orm class wrapper for all repositories.
This property can be only read from data source, but ommited in $mapper->unmapEntity()
/\s*\*\s*@property([ -](read|write)*\s*.*)/
/**
* @mapper Mapper(table_name)
*
* @property string $url m:map(Mapper:) m:validate(url)
* @property string $ip m:map(Mapper:) m:validate(ipv4|ipv6)
* @property integer $price m:map(Mapper:)
* @property integer $number m:map(Mapper:)
*/
class MyEntity extends UniMapper\Entity
{
public static function validateIpv4()
{
return ....;
}
}
/**
* @mapper Name(table)
*
* @property integer $id
* @property string $description
*/
class MyEntity extends \UniMapper\Entity
$this->getReflection() instead of $this->reflection and remove it from constructor
write some tests
solve $query->returnPrimaryValue
compatibility with 2.0.x / 2.1.x and higher
/**
* @mapper Mapper(table_name)
*
* @property integer $calculatedPrice m:computed
* @property integer $price m:map(Mapper:)
* @property integer $number m:map(Mapper:)
*/
class MyEntity extends UniMapper\Entity
{
protected function computeCalculatedPrice()
{
return $this->price * $this->number;
}
}
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.