youwe / pimcore-object-bridge
Allows editing an object inline that doesn't link directly many-to-many like
Installs: 6 159
Dependents: 1
Suggesters: 0
Security: 0
Stars: 7
Watchers: 9
Forks: 6
Open Issues: 0
Language:JavaScript
Type:pimcore-bundle
Requires
- pimcore/pimcore: ^10.5
- dev-master
- v10.0.0
- v6.0.7
- v6.0.6
- v6.0.5
- v6.0.4
- v6.0.3
- v6.0.2
- v6.0.1
- v6.0.0
- v5.8.0
- v5.7.1
- v5.7.0
- v5.6.1
- v5.6.0
- v5.0.21
- v5.0.20
- v5.0.19
- v5.0.18
- v5.0.17
- v5.0.16
- v5.0.15
- v5.0.14
- v5.0.13
- v5.0.12
- v5.0.11
- v5.0.10
- v5.0.9
- v5.0.8
- v5.0.7
- v5.0.6
- v5.0.5
- v5.0.4
- v5.0.3
- v5.0.2
- v5.0.1
- v0.0.21
- 0.0.20
- 0.0.19
- 0.0.18
- 0.0.17
- 0.0.16
- 0.0.15
- 0.0.14
- 0.0.13
- 0.0.12
- 0.0.11
- 0.0.10
- 0.0.9
- 0.0.8
- 0.0.7
- 0.0.2
- 0.0.1
- dev-fix/errorArrayKeyLocalizedfieldsDoesntExist
- dev-fix/typeErrorBecauseOfMissingTagsObject
- dev-fix/compileErrorIncompatibleCheckValidity
- dev-kjkooistra-youwe-patch-2
- dev-kjkooistra-youwe-patch-1
- dev-fix/bridgeObjectsNotFound
- dev-feat/updateOpenTargetAndIcons
- dev-feature/filteringAndBatchEdit
- dev-pimcore51
- dev-task/resizeColumnsAfterFiltering
- dev-task/filteringAndBatchEditFieldConfiguration
- dev-feature/batchEditSelectedRows
- dev-feature/addGridFilters
- dev-add-href-typeahead-show-trigger-compatibility
- dev-pimcore58
- dev-pimcore57
- dev-pimcore4
This package is auto-updated.
Last update: 2024-01-30 12:38:34 UTC
README
Use advanced many to one object relation instead.
Object bridge field
Allows editing an object inline that doesn't link directly many-to-many like Example: MainObject -> BridgeObject -> SourceObject allows to edit inline BridgeObject after linking a source object to it Cart -> ProductItem -> Product
How to install
- Run
composer require youwe/pimcore-object-bridge
to receive the bundle - Enable the bundle
bin/console pimcore:bundle:enable ObjectBridgeBundle
- Then the field
objectBridge
should be available in field selector under relations (Add Data Component->Relation->objectBridge)
Allowed in:
- object: true,
- objectbrick: true,
- fieldcollection: true,
- localizedfield: true,
- classificationstore: false,
- block: true
Bridge object editing fields:
- numeric
- input
- select
- manyToOneRelation
- checkbox
If not in list above then field will be read-only
Field specific settings
- Source class
- Select which class should be used as primary class
- Source visible fields
- Which fields from source class should be displayed
- Bridge class
- Select which class should be created when selecting the source object
- Bridge visible fields
- Same as source fields but from bridge class
- Bridge field
- Which field should be used when linking source object to bridge object
- Bridge folder
- Where bridge objects should be stored after automatic creating
Example scenario
+--------------+ +--------------+
| | | |
| Garage | | Garage |
| | | |
+-+-----------++ +----+---------+
| | |
| | |
| | |
+---------+---+ +--+----------+ +----+--------+
| | | | | |
| GarageCar | | GarageCar | | GarageCar |
| | | | | |
+---------+---+ +--+----------+ +----+--------+
| | |
| | +-------------+
| | |
+---------+---+ +--+-----+----+
| | | |
| Car | | Car |
| | | |
+-------------+ +-------------+
In this example, you would add the ObjectBridge field to Garage. The bridge table would be GarageCar. GarageCar would have a (single) many to one relation field to Car.
Fields for example tables:
Garage
- name
- location
- garageCars (field type = object-bridge)
GarageCar
- totalQuantity
- availableQuantity
- car (field type = manyToOneRelation)
Car
- type
- brand
- price
A certain car can be present in multiple garages, in different quantities.
See object bulk dump structure here
Screenshot
Todo's:
- Option to add custom add new object window (now default add functionality)
- Default value
- Testing