PHPackages                             chq81/query-inheritance-base-behavior - 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. chq81/query-inheritance-base-behavior

ActivePropel-behavior[Database &amp; ORM](/categories/database)

chq81/query-inheritance-base-behavior
=====================================

Propel 2 Query Inheritance Behavior to provide generic base query class for query inheritance objects

1.0.1(4y ago)03.2k[1 PRs](https://github.com/chq81/CustomQueryInheritanceBehavior/pulls)MITPHP

Since Feb 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/chq81/CustomQueryInheritanceBehavior)[ Packagist](https://packagist.org/packages/chq81/query-inheritance-base-behavior)[ RSS](/packages/chq81-query-inheritance-base-behavior/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

CustomQueryInheritanceBehavior for Propel 2
===========================================

[](#customqueryinheritancebehavior-for-propel-2)

Propel 2 Behavior to customize the inheritance for query objects in a single inheritance setup

License
-------

[](#license)

MIT License

copyright (c) 2015 Christoph Quadt

Functionality
-------------

[](#functionality)

If there is a single inheritance set on a propel class, the current way of inheriting is:

```
FantasyBookQuery
=> BaseFantasyBookQuery
=> BaseBookQuery
=> ModelCriteria

```

This Builder provides the following setup:

```
FantasyBookQuery
=> BaseFantasyBookQuery
=> **BookQuery**
   or
=> **MyCustomQuery**
=> BaseBookQuery
=> ModelCriteria

```

Requirements
------------

[](#requirements)

This behavior requires

- [Propel2](https://github.com/propelorm/Propel2) &gt;= 2.0@dev
- [QueryInheritanceBehaviorBuilder](https://github.com/fizzle81/QueryInheritanceBehaviorBuilder) &gt;= 1.0.0

Installation
------------

[](#installation)

To enable the builder, you need to

1. reference the QueryInheritanceBehaviorBuilder as a custom builder in the propel settings:

```
propel.generator.objectModel.builders.queryinheritance = chq81\\CustomQueryInheritance\\Builder\\CustomQuerySingleInheritanceBuilder
```

2a. enable the behavior in the schema.xml for inheriting from the default query class (BookQuery):

```

```

2b. enable the behavior in the schema.xml for inheriting from the custom query class (MyCustomQuery):

```

```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2312 days

Total

2

Last Release

1796d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/98c51a2dd1b325f3c4bea5cf90b782681d74591da79abad0476c92f5b33b22cc?d=identicon)[chq81](/maintainers/chq81)

---

Top Contributors

[![chq81](https://avatars.githubusercontent.com/u/1406816?v=4)](https://github.com/chq81 "chq81 (18 commits)")

---

Tags

queryBehaviorbasepropelinheritance

### Embed Badge

![Health badge](/badges/chq81-query-inheritance-base-behavior/health.svg)

```
[![Health](https://phpackages.com/badges/chq81-query-inheritance-base-behavior/health.svg)](https://phpackages.com/packages/chq81-query-inheritance-base-behavior)
```

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11120.2M21](/packages/anourvalar-eloquent-serialize)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
