concrete/src/Entity/Express/Entry.php
public function getEntryAssociation(Association $association)
    {
        $id = $association->getId();

        /**
         * @var EntryAssociation $entryAssociation
         */
        foreach ($this->associations as $entryAssociation) {
            if ($entryAssociation->getAssociation()->getId() === $id) {
                return $entryAssociation;
            }
        }

        return null;
    }
public function getEntryAssociation(Association $association)
    {
        $id = $association->getId();

        /**
         * @var EntryAssociation $entryAssociation
         */
        foreach ($this->associations as $entryAssociation) {
            if ($entryAssociation->getAssociation()->getId() === $id) {
                return $entryAssociation;
            }
        }

        return null;
    }
public function getEntryAssociation ( Association $ association ) { $ id = $ association -> getId ( ) ; /**
         * @var EntryAssociation $entryAssociation
         */ foreach ( $ this -> associations as $ entryAssociation ) { if ( $ entryAssociation -> getAssociation ( ) -> getId ( ) === $ id ) { return $ entryAssociation ; } } return null ; }
Get the EntryAssociation for a given association.

@param \Concrete\Core\Entity\Express\Association $association

@return \Concrete\Core\Entity\Express\Entry\Association|null
Get the EntryAssociation for a given association .