PHPackages                             k1low/has\_no - 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. k1low/has\_no

ActiveCakephp-plugin

k1low/has\_no
=============

Simple binding model practice plugin for CakePHP.

3.0.1(10y ago)74.0kMITPHPCI failing

Since Nov 14Pushed 10y ago1 watchersCompare

[ Source](https://github.com/k1LoW/has_no)[ Packagist](https://packagist.org/packages/k1low/has_no)[ Docs](https://github.com/k1LoW/has_no)[ RSS](/packages/k1low-has-no/feed)WikiDiscussions 3.0 Synced 3d ago

READMEChangelog (4)Dependencies (2)Versions (6)Used By (0)

Simple binding model practice plugin for CakePHP. [![Build Status](https://camo.githubusercontent.com/c230d62975aed7b9e0e2fe67ce1435243417aac93baf357147927e1f8e0c01ca/68747470733a2f2f7472617669732d63692e6f72672f6b314c6f572f6861735f6e6f2e737667)](https://travis-ci.org/k1LoW/has_no)
=========================================================================================================================================================================================================================================================================================

[](#simple-binding-model-practice-plugin-for-cakephp-)

This plugin support following binding model practice.

> Bake and write bind property on model file. unbindModel() all. bindModel() you want to.

Features
--------

[](#features)

- unbindModel() all by Model::belongsTo, Model::hasOne, Model::hasMany, Model::hasAndBelongsToMany.
- Provide simple bind model method has(), hasAll() by Model::belongsTo, Model::hasOne, Model::hasMany, Model::hasAndBelongsToMany.

!!!!!NOTICE!!!!!
----------------

[](#notice)

### HasNo &gt;= 3.x

[](#hasno--3x)

Containable based

### HasNo 2.x

[](#hasno-2x)

Property modifiy based

Usage
-----

[](#usage)

Add the following code in whichever model you want to unbindModel() all (ex. `Post` Model).

```
