Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 24 additions & 6 deletions src/lib/Persistence/Doctrine/SiteAccessAwareEntityManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,12 +229,18 @@ public function find($className, $id): ?object
return $this->getWrapped()->find($className, $id);
}

public function persist(object $object): void
/**
* @param object $object
*/
public function persist($object): void
{
$this->getWrapped()->persist($object);
}

public function remove(object $object): void
/**
* @param object $object
*/
public function remove($object): void
{
$this->getWrapped()->remove($object);
}
Expand All @@ -244,12 +250,18 @@ public function clear(): void
$this->getWrapped()->clear();
}

public function detach(object $object): void
/**
* @param object $object
*/
public function detach($object): void
{
$this->getWrapped()->detach($object);
}

public function refresh(object $object, ?int $lockMode = null): void
/**
* @param object $object
*/
public function refresh($object, ?int $lockMode = null): void
{
$this->getWrapped()->refresh($object, $lockMode);
}
Expand Down Expand Up @@ -288,7 +300,10 @@ public function getMetadataFactory(): ClassMetadataFactory
return $this->getWrapped()->getMetadataFactory();
}

public function initializeObject(object $obj): void
/**
* @param object $obj
*/
public function initializeObject($obj): void
{
$this->getWrapped()->initializeObject($obj);
}
Expand All @@ -301,7 +316,10 @@ public function isUninitializedObject($value): bool
return $this->getWrapped()->isUninitializedObject($value);
}

public function contains(object $object): bool
/**
* @param object $object
*/
public function contains($object): bool
{
return $this->getWrapped()->contains($object);
}
Expand Down
Loading