Please don't use this bundle in a production environment. Years ago, when I created this bundle EAV was a good choice to store data which had a loose schema in SQL. Nowdays we have all kinds of schema less storage options which are better suited for this job.
If you absolutely have to use SQL, EAV can still help you, and this bundle should be able to inspire you.
An EAV implementation for Symfony2.
The purpose of this bundle is to allow users to create custom fields for entities.
Custom fields can be unique per row in the DB, or can be related to an entity itself.
Usage with Schema:
Custom fields are related to the entity. When the schema is updated, the attributes are synchronized.
Usage without Schema:
Custom fields are related to each data row individually.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
By web-flow, 17 days ago
By web-flow, 17 days ago
- Merge pull request #37 from greg0ire/patch-1
Ensure an attribute always has a definition
By greg0ire, 2 years ago
- Merge pull request #33 from Padam87/badges
- Added badges to readme
- Merge pull request #32 from Padam87/3.0
- Merge pull request #30 from Padam87/3.0-cleanup
- Documentation updates
- Added option value field
- Removed idea from gitignore
- Fixed cache warmer
- Fixed test fails
- Optimized attribute creator
- Ran the CS fixer
- Added CS fixer config
- Moved listeners to the EventListener folder
- Replaced schema creator listener with a command
- get rid of DiExtraBundle
- ignore build directory
- add missing newline
- Fixed more test issues
- Fixed some travis issues
- Removed php 5.3 support
- Added listener functional tests
- Removed SchemaController class
- Merge pull request #29 from Padam87/gh-14-definition-options
- Readded option type
Merge pull request #26 from greg0ire/customize_class
By Padam87, 3 years ago
take at least the 'attr' option into account
By greg0ire, 3 years ago