public function create($data)
    {
        $data = new AnConfig($data);

        $data->append(array(
            'owner' => $data->target ? $data->target : $data->subject,
        ));

        $data = AnConfig::unbox($data);

        return $this->getEntity(array('data' => $data));
    }
public function create($data)
    {
        $data = new AnConfig($data);

        $data->append(array(
            'owner' => $data->target ? $data->target : $data->subject,
        ));

        $data = AnConfig::unbox($data);

        return $this->getEntity(array('data' => $data));
    }
public function create ( $ data ) { $ data = new AnConfig ( $ data ) ; $ data -> append ( array ( 'owner' => $ data -> target ? $ data -> target : $ data -> subject , ) ) ; $ data = AnConfig :: unbox ( $ data ) ; return $ this -> getEntity ( array ( 'data' => $ data ) ) ; }
Creates a new story.

@param array $data The story data

@return ComStoriesDomainEntityStory
Creates a new story .