Fix tests on php 5

This commit is contained in:
Julius Haertl
2016-10-14 14:33:30 +02:00
parent 20222c1f79
commit a7853723d7

View File

@@ -40,7 +40,7 @@ class Entity extends \OCP\AppFramework\Db\Entity {
* Mark a property as relation so it will not get updated using Mapper::update * Mark a property as relation so it will not get updated using Mapper::update
* @param string $property Name of the property * @param string $property Name of the property
*/ */
public function addRelation(string $property) { public function addRelation($property) {
if (!in_array($property, $this->_relations)) { if (!in_array($property, $this->_relations)) {
$this->_relations[] = $property; $this->_relations[] = $property;
} }