php


doctrine prevent from updating joined entity


i have entity with
Liability {
/**
* #ORM\OneToMany(targetEntity="Objection", mappedBy="liability", cascade={"persist"})
*
* #var
*/
private $objections;
and
Objection {
/**
* #ORM\ManyToOne(targetEntity="Liability")
* #ORM\JoinColumn(name="liability_id", referencedColumnName="id",nullable=true)
*/
private $liability;
i create form to add objection
i add to new objection exist liability.
$obj = new Objection();
$liability = $doctrine....->find($liabilityId);
$obj->setLiablity($liability);
in a edit form user can change details of liability i save it as array.
but when i save objection i update liability i don`t want do it.
i try before save get fresh from database but it not read fresh.

Related Links

Text Not going to php file when uploading text and image to server from iOS
make theme wmpl ready wpml-config
How can I group up product names from my database in my query which have the same name?
Mysqldump trough PHP generates error: Unknow database. How to solve this?
Send json object data to remote mysql database in android
PHP - how to upload 3 images with 3 inputs in one form php
Group by is not showing all the rows
recursively database filling with multidimensional array
Xpath return wrong output than in XPath helper in browser
php and mysql syntax issues using update statements
Firefox bootstrap grid displacement issue
Convert ’ (’) for use in RSS URL
Parse error: syntax error, unexpected end of file in PHP [duplicate]
Laravel 5 database relationship accessing a data on another table
Issue with multiple image write
Phalcon get parameters are not working with lighttpd

Categories

HOME
cocoapods
opencv-python
systemd
antd
loopbackjs
initialization
timber
clish
android-externalstorage
jquery-file-upload
squid
bnf
rest-assured
vertica
web-deployment
tomcat8
hidden
rpmbuild
gmp
substring
eclipse-emf
quartz.net
vuforia
ipa
math.js
ccavenue
fusion
substance
vcenter
db2-luw
amazon-kms
busboy
cups
formsauthenticationticket
installanywhere
identify
xll
iscroll
plane
grails3.2.0
haar-classifier
notesview
sendinput
jshint
sonarqube5.2
nusoap
cordova-ios
sharpdx
android-sharing
android-mediarecorder
dtd
apache-modules
alertify
zend-server
degrees
okio
clp
tsqlt
ftp-client
conan
unsigned
apple-configurator
mercurial-extension
gwt-syncproxy
perceptron
stack-smash
variable-length-array
directx-9
dnx50
mixins
wso2ml
physicsjs
shell-extensions
mxe
famo.us
symja
otl
pageviews
accountmanager
property-injection
pbkdf2
revmob
statechart
asp.net-mvc-3-areas
groovy-console
play2-mini
qt-mobility
botnet
airprint
dip
downgrade
tessellation
activestate
tabbarcontroller
icon-language
levels

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile