sfEntityAttributeValuePlugin | symfony plugin that allows use

 by   AliHichem PHP Version: Current License: MIT

kandi X-RAY | sfEntityAttributeValuePlugin Summary

kandi X-RAY | sfEntityAttributeValuePlugin Summary

sfEntityAttributeValuePlugin is a PHP library. sfEntityAttributeValuePlugin has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

The sfEntityAttributeValuePlugin is a symfony plugin that allows use of the [Entity-Attribute-Value] data-model as a doctrine behavior. This plugin provides a way to easily create dynamic fields with [jQuery Form Builder Plugin] and bind then to a specific object (DB line) of your model. It also allow you to fill in these fields from other models that have a ManyToOne relation with the first one. And finally, these stored EAV can be exploited in edit/read mode.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              sfEntityAttributeValuePlugin has a low active ecosystem.
              It has 6 star(s) with 2 fork(s). There are 1 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              sfEntityAttributeValuePlugin has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of sfEntityAttributeValuePlugin is current.

            kandi-Quality Quality

              sfEntityAttributeValuePlugin has no bugs reported.

            kandi-Security Security

              sfEntityAttributeValuePlugin has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              sfEntityAttributeValuePlugin is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              sfEntityAttributeValuePlugin releases are not available. You will need to build from source code and install.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of sfEntityAttributeValuePlugin
            Get all kandi verified functions for this library.

            sfEntityAttributeValuePlugin Key Features

            No Key Features are available at this moment for sfEntityAttributeValuePlugin.

            sfEntityAttributeValuePlugin Examples and Code Snippets

            No Code Snippets are available at this moment for sfEntityAttributeValuePlugin.

            Community Discussions

            No Community Discussions are available at this moment for sfEntityAttributeValuePlugin.Refer to stack overflow page for discussions.

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install sfEntityAttributeValuePlugin

            Activate the plugin in your project configuration file (in config/ProjectConfiguration.class.php).
            Install the plugin $ symfony plugin:install sfEntityAttributeValuePlugin
            Activate the plugin in your project configuration file (in config/ProjectConfiguration.class.php). class ProjectConfiguration extends sfProjectConfiguration { public function setup() { //... $this->enablePlugins('sfEntityAttributeValuePlugin'); } }
            Apply the EAV behavior to your model in your schema file config/doctrine/schema.yml , ie: Assume that we want to bind dynamic fields to each object of a model called "ParentModel" and then insert data in these fields from a ChildModel who is related as ManyToOne to the "ParentModel", the schema will contain config like this: ParentModel: actAs: EavBehavior: mode: create columns: ... ChildModel: actAs: EavBehavior: mode: insert parent_resource: ParentModel columns: parent_model_id: { type: integer } ... relations: ParentModel: { local: parent_model_id, foreign: id }
            Build Eav models and create tables : $ symfony doctrine:build --all alternatively you could build the models, the sql, then run the sql manually
            Build (or update) the global resource file to affect unique id for all your models $ symfony eav:init-config Important note: this task will create/update the file resources.yml that hold the models ids, do not change manually this files, this may damage your EAV structure!
            Activate the "eav" module in the settings.yml: all: .settings: enabled_modules: [ default, eav ]
            publish assets $ symfony plugin:publish-assets
            Clear your cache $ symfony cc
            Add the sfWidgetFormEav as a widgetSchema in all forms that have the EavBehavior. The sfEntityAttributeValuePlugin is enough smart to render the widget in create or insert mode. # lib/form/doctrine/ParentModelForm.php class ParentModelForm extends BaseParentModelForm { public function configure() { $this->widgetSchema['eav'] = new sfWidgetFormEav($this); } } # lib/form/doctrine/ChildModelForm.php class ChildModelForm extends BaseChildModelForm { public function configure() { $this->widgetSchema['eav'] = new sfWidgetFormEav($this); } }
            Add the widget "eav" in the form partial # _form.php echo $form['eav']-> renderRow();

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/AliHichem/sfEntityAttributeValuePlugin.git

          • CLI

            gh repo clone AliHichem/sfEntityAttributeValuePlugin

          • sshUrl

            git@github.com:AliHichem/sfEntityAttributeValuePlugin.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link