compoships:Laravel的口才ORM的多列关系

时间:2021-02-04 16:28:05
【文件属性】:
文件名称:compoships:Laravel的口才ORM的多列关系
文件大小:32KB
文件格式:ZIP
更新时间:2021-02-04 16:28:05
laravel eloquent relationships multi-keys composite-keys Compoships Compoships提供了基于Laravel Eloquent ORM中的两个(或更多)列指定关系的功能。 与第三方或现有的架构/数据库一起使用时,经常需要在Eloquent关系的定义中匹配多个列。 问题 口才不支持复合键。 结果,无法通过匹配多个列来定义一个模型与另一个模型之间的关系。 急于加载关系时,尝试使用where clauses (如下面的示例)将不起作用,因为在处理关系时$ this-> team_id为null。 namespace App ; use Illuminate \ Database \ Eloquent \ Model ; class Us
【文件预览】:
compoships-master
----.gitignore(127B)
----.codeclimate.yml(103B)
----src()
--------Exceptions()
--------Compoships.php(1KB)
--------Database()
----.travis.yml(2KB)
----CONTRIBUTING.md(4KB)
----LICENSE(1KB)
----composer.json(979B)
----.github()
--------FUNDING.yml(668B)
----README.md(7KB)
----tests()
--------bootstrap.php(616B)
--------Migration.php(4KB)
--------Unit()
--------TestCase()
--------ComposhipsTest.php(6KB)
--------Models()
----phpunit.xml.dist(1KB)

网友评论