is it possible do audit entities with the simplethings / EntityAudit - https://github.com/simplethings/EntityAudit
using the same entity in both OneToMany and OneToOne relation?
class Address
{
/**
* @ORM\Column
*/
protected $address_text;
/**
* @ORM\ManyToOne(targetEntity="Customer", inversedBy="addresses")
*/
protected $customer;
}
class Customer
{
/**
* @ORM\OneToMany(targetEntity="Address", mappedBy="customer")
*/
protected $addresses;
/**
* @ORM\OneToOne(targetEntity="Address")
*/
protected $primary_address;
}
without auditing it works perfectly, but with it - the script ends on
UnitOfWork::getEntityIdentifier with the "Unidentified index" notice
described as well on https://github.com/simplethings/EntityAudit/issues/9
test case borrowed from Using the same entity in both OneToMany and OneToOne possible?