Skip to content

Commit

Permalink
Clean up formatting in entity files
Browse files Browse the repository at this point in the history
  • Loading branch information
jmikola committed Dec 7, 2011
1 parent ac140d3 commit 4866719
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
3 changes: 0 additions & 3 deletions Entity/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ abstract class Message extends BaseMessage
*/
protected $metadata;


/**
* Initializes the collections
*/
Expand Down Expand Up @@ -56,7 +55,6 @@ public function setIsReadByParticipant(ParticipantInterface $participant, $isRea
$meta->setIsRead($isRead);
}


public function getAllMetadata()
{
return $this->metadata;
Expand All @@ -78,5 +76,4 @@ public function addMetadata(MessageMetadata $meta)
$meta->setMessage($this);
$this->metadata->add($meta);
}

}
3 changes: 1 addition & 2 deletions EntityManager/MessageManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use Ornicar\MessageBundle\Model\ThreadInterface;
use Doctrine\ORM\Query\Builder;


/**
* Default ORM MessageManager.
*
Expand Down Expand Up @@ -43,6 +42,7 @@ class MessageManager extends BaseMessageManager
*
* @param EntityManager $em
* @param string $class
* @param string $metaClass
*/
public function __construct(EntityManager $em, $class, $metaClass)
{
Expand Down Expand Up @@ -167,7 +167,6 @@ public function getClass()
return $this->class;
}


/**
* DENORMALIZATION
*
Expand Down
4 changes: 1 addition & 3 deletions EntityManager/ThreadManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
use Ornicar\MessageBundle\Model\ParticipantInterface;
use Doctrine\ORM\Query\Builder;


/**
* Default ORM ThreadManager.
*
Expand Down Expand Up @@ -54,6 +53,7 @@ class ThreadManager extends BaseThreadManager
*
* @param EntityManager $em
* @param string $class
* @param string $metaClass
* @param MessageManager $messageManager
*/
public function __construct(EntityManager $em, $class, $metaClass, MessageManager $messageManager)
Expand Down Expand Up @@ -226,7 +226,6 @@ public function findThreadsCreatedBy(ParticipantInterface $participant)
->execute();
}


/**
* Marks the readable as read by this participant
* Must be applied directly to the storage,
Expand Down Expand Up @@ -289,7 +288,6 @@ public function getClass()
return $this->class;
}


/**
* DENORMALIZATION
*
Expand Down
6 changes: 2 additions & 4 deletions Resources/config/doctrine/MessageMetadata.orm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@

<field name="isRead" column="is_read" type="boolean" />

<!--
<many-to-one field="message" target-entity="MyProject\MessageBundle\Entity\Message" inversed-by="metadata" />
<!--<many-to-one field="message" target-entity="MyProject\MessageBundle\Entity\Message" inversed-by="metadata" />-->

<many-to-one field="participant" target-entity="MyProject\UserBundle\Entity\User" />
-->
<!--<many-to-one field="participant" target-entity="MyProject\UserBundle\Entity\User" />-->

</mapped-superclass>

Expand Down

0 comments on commit 4866719

Please sign in to comment.