PHPackages                             muffin/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. muffin/sti

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

muffin/sti
==========

Single Table Inheritance for CakePHP ORM

1.0.0(6y ago)68118[1 PRs](https://github.com/UseMuffin/Sti/pulls)MITPHPPHP &gt;=5.6CI failing

Since Jun 19Pushed 2y ago4 watchersCompare

[ Source](https://github.com/UseMuffin/Sti)[ Packagist](https://packagist.org/packages/muffin/sti)[ Docs](https://github.com/usemuffin/sti)[ RSS](/packages/muffin-sti/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (5)Used By (0)

Sti
===

[](#sti)

[![Build Status](https://camo.githubusercontent.com/eff7079979d67c8ccde95926b3f2aa19b712aaa6c04d752a356fcfb1556239c7/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f5573654d756666696e2f5374692f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/UseMuffin/Sti)[![Coverage](https://camo.githubusercontent.com/db65dfd640ef5f8854a251137e4556a985d1abd6aaca5febe8a1cc87b3fd4040/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6769746875622f5573654d756666696e2f5374693f7374796c653d666c61742d737175617265)](https://codecov.io/gh/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 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

```

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

```
bin/cake plugin load Muffin/Sti

```

Usage
-----

[](#usage)

```
