Bluz\Db\Relations
Relations map of Db tables
- Author: Anton Shevchuk
Synopsis
- // members
- protected static $relations;
- protected static $modelClassMap;
- // methods
- public static void setRelation()
- public static void setRelations()
- public static array|false getRelations()
- public static array findRelation()
- public static array findRelations()
- public static void addClassMap()
- public static string getModelClass()
- public static Row createRow()
- public static array fetch()
Members
protected
- $modelClassMap
—
array
Class map, i.e. - $relations
—
array
Relation stack, i.e.
Methods
public
- addClassMap() — Add information about model's classes
- createRow() — Get information about Table classes
- fetch() — Fetch by Divider
- findRelation() — findRelation
- findRelations() — Find Relations between two tables
- getModelClass() — Get information about Model classes
- getRelations() — Get relations
- setRelation() — Setup relation between two models
- setRelations() — Setup multi relations
History
-
2017-10-20T10:18:07+00:00 (commit #d6666a1)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Fixed `Response::reload()` Fixed codestyle
-
2017-06-30T08:36:40+00:00 (commit #2259ecf)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Fixed comments style
-
2017-04-21T15:28:30+00:00 (commit #f0410e7)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Replace `join` with `implode`
-
2017-04-21T15:14:44+00:00 (commit #c7538da)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Replace `sizeof` to `count`
-
2017-04-21T13:24:35+00:00 (commit #3b25a3d)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Small update for codestyle
-
2017-02-15T16:09:44+00:00 (commit #0fc0c8b)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Updated coveralls config
-
2017-02-13T10:14:18+00:00 (commit #43dbf55)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Rollback to `getCount()` method
-
2017-01-30T13:15:49+00:00 (commit #fd5d943)
Author: Anton (AntonShevchuk@gmail.com) / Commiter: GitHub (AntonShevchuk@gmail.com)
Merge pull request #395 from AntonShevchuk/master Added `AttachmentResponse`
-
2017-01-30T12:38:53+00:00 (commit #0ab8691)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Added `AttachmentResponse` Added `attachment($file)` helper for `Controller`