Skip to content

Commit

Permalink
fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
Gladhon committed Sep 17, 2015
1 parent 2c72daa commit 117bd45
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Listener/LoggableListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use Ibrows\LoggableBundle\Entity\LogMany2Many;
use Ibrows\LoggableBundle\Entity\LogParent;
use Ibrows\LoggableBundle\Model\AbstractLogModel;
use Ibrows\LoggableBundle\Model\ScheduledChangeabePartially;
use Ibrows\LoggableBundle\Model\ScheduledChangeablePartially;
use Ibrows\LoggableBundle\Model\ScheduledChangeable;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Core\Role\SwitchUserRole;
Expand Down Expand Up @@ -493,7 +493,7 @@ protected function addChangeSet($object, Log $logEntry, LoggableAdapter $ea)
if ($date == null) {
return false;
}
if ($object instanceof ScheduledChangeabePartially) {
if ($object instanceof ScheduledChangeablePartially) {
$intersect = array_intersect( $object->getFieldsToSchedule(),array_keys($logEntry->getOldData()));
if(count($intersect)== 0){
//no fields changed that are changeable
Expand Down Expand Up @@ -541,7 +541,7 @@ protected function addChangeSet($object, Log $logEntry, LoggableAdapter $ea)
// $undoSet = array();
$uow->clearEntityChangeSet($hash);
foreach ($logEntry->getOldData() as $field => $oldValue) {
if($object instanceof ScheduledChangeabePartially && !in_array($field,$object->getFieldsToSchedule())){
if($object instanceof ScheduledChangeablePartially && !in_array($field,$object->getFieldsToSchedule())){
$value = null;
if(isset($data[$field])){
$value = $data[$field];
Expand All @@ -563,7 +563,7 @@ protected function addChangeSet($object, Log $logEntry, LoggableAdapter $ea)
// $uow->computeChangeSet($changeSetMeta, $object);

}
if($object instanceof ScheduledChangeabePartially ){
if($object instanceof ScheduledChangeablePartially ){
$changeSetDataKeys = array_keys($uow->getEntityChangeSet($object));
if(sizeof($changeSetDataKeys)>0){
//partial
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Ibrows\LoggableBundle\Model;


interface ScheduledChangeabePartially extends ScheduledChangeable
interface ScheduledChangeablePartially extends ScheduledChangeable
{
/**
* @return array
Expand Down
5 changes: 2 additions & 3 deletions Tests/Loggable/Fixture/Entity/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Ibrows\LoggableBundle\Model\ScheduledChangeabePartially;
use Ibrows\LoggableBundle\Model\ScheduledChangeable;
use Ibrows\LoggableBundle\Model\ScheduledChangeablePartially;

/**
* @ORM\Entity
* @ORM\Table(name="fix_user")
* @Gedmo\SoftDeleteable(fieldName="deletedAt")
*/
class User implements ScheduledChangeabePartially
class User implements ScheduledChangeablePartially
{
/**
* @var Article[]
Expand Down

0 comments on commit 117bd45

Please sign in to comment.