PHPackages                             carlosmaiello/sti - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. carlosmaiello/sti

ActiveCakephp-plugin[Database &amp; ORM](/categories/database)

carlosmaiello/sti
=================

Single Table Inheritance for CakePHP 3 ORM

014PHP

Since Sep 12Pushed 7y ago1 watchersCompare

[ Source](https://github.com/carlosmaiello/Sti)[ Packagist](https://packagist.org/packages/carlosmaiello/sti)[ RSS](/packages/carlosmaiello-sti/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Sti
===

[](#sti)

[![Build Status](https://camo.githubusercontent.com/eff7079979d67c8ccde95926b3f2aa19b712aaa6c04d752a356fcfb1556239c7/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f5573654d756666696e2f5374692f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/UseMuffin/Sti)[![Coverage](https://camo.githubusercontent.com/94001512ea8f171b9887db08cadb18afec904d0a64e9e6613844861468152883/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f5573654d756666696e2f5374692f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/r/UseMuffin/Sti)[![Total Downloads](https://camo.githubusercontent.com/0ee2c84590f3fa3c95b2f2f27c101d6f17ec5eeb119cf8c690264fc13c2a81d7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d756666696e2f7374692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/muffin/sti)[![License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE)

Single Table Inheritance for CakePHP 3 ORM.

> \[...\] a way to emulate object-oriented inheritance in a relational database. When mapping from a database table to an object in an object-oriented language, a field in the database identifies what class in the hierarchy the object belongs to.

(source: [Wikipedia](https://en.wikipedia.org/wiki/Single_Table_Inheritance))

Install
-------

[](#install)

Using [Composer](http://getcomposer.org):

```
composer require muffin/sti:1.0.x-dev

```

You then need to load the plugin. You can use the shell command:

```
bin/cake plugin load Muffin/Sti

```

or by manually adding statement shown below to `bootstrap.php`:

```
Plugin::load('Muffin/Sti');
```

Usage
-----

[](#usage)

```
