Knp\Bundle\KnpBundlesBundle\Entity\Activity::getCreatedAt PHP Method

getCreatedAt() public method

public getCreatedAt ( ) : DateTime
return DateTime
    public function getCreatedAt()
    {
        return $this->createdAt;
    }

Usage Example

 /**
  * @param  Activity $activity
  * @return array
  */
 public function findAllSimilar(Activity $activity)
 {
     return $this->createQueryBuilder('a')->where('a.id != ?1')->andWhere('a.author = ?2')->andWhere('a.bundleName = ?3')->andWhere('a.bundleOwnerName = ?4')->andWhere('a.message = ?5')->andWhere('a.createdAt = ?6')->setParameter(1, $activity->getId())->setParameter(2, $activity->getAuthor())->setParameter(3, $activity->getBundleName())->setParameter(4, $activity->getBundleOwnerName())->setParameter(5, $activity->getMessage())->setParameter(6, $activity->getCreatedAt())->getQuery()->getResult();
 }
All Usage Examples Of Knp\Bundle\KnpBundlesBundle\Entity\Activity::getCreatedAt