Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/schmunk42/yii-relation

Yii Framework active record relation components
https://github.com/schmunk42/yii-relation

Last synced: about 1 month ago
JSON representation

Yii Framework active record relation components

Awesome Lists containing this project

README

        

Relation
========

* `GtcSaveRelationsBehavior` saves related records.
* `GtcRelation` displays an input widget for relations.

*These components were originally part of the gii-template-collection, credits to [thyseus](https://github.com/thyseus/)*

Usage
-----

### composer autoloading

Just prepend a backslash to trigger the composer autoloader, requires `Yii 1.1.14`.

`\GtcSaveRelationsBehavior`

### Yii autoloading

Import the component in your application configuration:

```
'import' => array(
'vendor.schmunk42.relation.behaviors.*',
)
```